| CreateDiffuseTexture(RawImageData, CommonSamplerTypes, String, Single) |
CreateDiffuseTexture creates a GpuImage object from the specified rawImageData.
If this material was already initialized ([!:Material.Scene] is set), then this method sets the DiffuseTexture, DiffuseTextureSamplerType and DiffuseTextureSampler properties.
If this material was not yet initialized, then the creation of the texture is postponed until the InitializeResources method is called.
To immediately create the texture call this method and pass a VulkanDevice as the first parameter.
The created GpuImage is disposed when this Material is disposed.
|