#[non_exhaustive]pub enum TextureSource {
Texture2D(Texture),
Depth(DepthTexture),
ShadowMap(DepthTexture),
Cube(CubeTexture),
DataArray(DataArrayTexture),
Data(DataTexture),
CubeDepth(CubeDepthTexture),
Texture3D(Data3DTexture),
Storage(Texture, StorageAccess),
Storage3D(Data3DTexture, StorageAccess),
}Expand description
The texture a TextureNode / CubeTextureNode samples.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Texture2D(Texture)
texture( Texture ) — a sampled texture_2d<f32>.
Depth(DepthTexture)
texture( DepthTexture ) — a sampled texture_depth_2d.
ShadowMap(DepthTexture)
A DepthTexture with compareFunction set, bound as
texture_depth_2d + sampler_comparison and read with
textureSampleCompare — ShadowNode’s shadow map.
Cube(CubeTexture)
cubeTexture( CubeTexture ) — a sampled texture_cube<f32>.
DataArray(DataArrayTexture)
DataArrayTexture — the morph-target data texture.
Data(DataTexture)
DataTexture — BatchedMesh’ matrices / colours / indirect tables.
CubeDepth(CubeDepthTexture)
A point light’s shadow map — cubeTexture( CubeDepthTexture ).
Texture3D(Data3DTexture)
texture3D( Data3DTexture | Storage3DTexture ) — a sampled
texture_3d<f32>.
Storage(Texture, StorageAccess)
storageTexture( StorageTexture ) — a texture_storage_2d<format, access>, what textureStore() writes and .load() reads.
Storage3D(Data3DTexture, StorageAccess)
storageTexture( Storage3DTexture ) — texture_storage_3d.