Enum TextureUsage
A bitmask indicating how a Texture is permitted to be used.
Namespace: Veldrid
Assembly: cs.temp.dll.dll
Syntax
[Flags]
public enum TextureUsage : byte
Fields
Name | Description |
---|---|
Cubemap | The Texture is a two-dimensional cubemap. |
DepthStencil | The Texture can be used as the depth target of a Framebuffer. |
GenerateMipmaps | The Texture supports automatic generation of mipmaps through GenerateMipmaps(Texture). |
RenderTarget | The Texture can be used as the color target of a Framebuffer. |
Sampled | The Texture can be used as the target of a read-only TextureView, and can be accessed from a shader. |
Staging | The Texture is used as a read-write staging resource for uploading Texture data. With this flag, a Texture can be mapped using the Map(MappableResource, MapMode, UInt32) method. |
Storage | The Texture can be used as the target of a read-write TextureView, and can be accessed from a shader. |