 |
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.EffectsAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 4.1.9680+a1b1e43de1ad9a7e35472c33948d688d7b40ef79
Syntaxprotected 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