hxn

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 = 1

    Sampled by a shader.

  • Storage = 2

    Written by a shader; needs StorageTextures.

  • RenderTarget = 4

    The target of a render pass.

Fields and methods

var has(default, null):(this:Int, usage:TextureUsage) -> Bool