GpuTextureFormat¶
Import: import system.gpu;
This reference lists the public declarations for this part of the library. See Reading API signatures for parameter and result notation. Shader-only declarations can be used only inside @compute, @vertex, @fragment, inferred helpers and ray tracing shader functions; using them elsewhere is a compile error.
GpuTextureFormat¶
How a texture stores each pixel.
Rgba8Unorm¶
Four 8-bit channels, read as 0.0 to 1.0.
Rgba8UnormSrgb¶
Four 8-bit channels in the sRGB color space; reads convert to linear color.
Bgra8Unorm¶
Four 8-bit channels in blue, green, red, alpha order, common for window surfaces.
Bgra8UnormSrgb¶
Bgra8Unorm in the sRGB color space.
R8Unorm¶
One 8-bit channel, read as 0.0 to 1.0.
R32Float¶
One 32-bit float channel.
Rg32Float¶
Two 32-bit float channels.
Rgba16Float¶
Four 16-bit float channels.
Rgba32Float¶
Four 32-bit float channels.
R32Uint¶
One 32-bit unsigned integer channel.
Depth32Float¶
A 32-bit float depth buffer.
Depth24PlusStencil8¶
A depth buffer of at least 24 bits plus an 8-bit stencil.