Click or drag to resize
Ab4d.SharpEngine logo

EffectDisposeMaterial(Material, IGpuDynamicMemoryBlockPool, DescriptorSetsCache) Method

DisposeMaterial frees the memory block that was used by the specified material, sets material's MaterialIndex and MemoryBlockIndex to -1 and disposes descriptor sets that were used for the material's textures.

Namespace: Ab4d.SharpEngine.Effects
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 4.0.9584+ba1aaa26d4181dd3fa8ed7b6398391d1affa36c8
Syntax
C#
protected void DisposeMaterial(
	Material material,
	IGpuDynamicMemoryBlockPool? memoryBlockPool,
	DescriptorSetsCache? textureDescriptorSetsCache
)

Parameters

material  Material
material
memoryBlockPool  IGpuDynamicMemoryBlockPool
memoryBlockPool that can be used to get the IGpuDynamicMemoryBlock
textureDescriptorSetsCache  DescriptorSetsCache
Optional textureDescriptorSetsCache that can be used to dispose the texture descriptor sets
See Also