TextureUsage
- Over
Int
How a texture is used, combined with |. GpuDevice.readTexture works on any texture, and GpuDevice.writeTexture on any texture when the device has TextureWrites.
Values
Sampled = 1Sampled by a shader.
Storage = 2Written by a shader; needs
StorageTextures.RenderTarget = 4The target of a render pass.
Fields and methods
var has(default, null):(this:Int, usage:TextureUsage) -> Bool