TEXTURE TYPES

Texture1D

texture1d<float> texture

A texture type that is not supported in Shaderific.

Texture1DArray

texture1d_array<float> texture

A texture type that is not supported in Shaderific.

Texture2D

texture2d<float> texture

A texture type that allows to access image data in the vertex and fragment shader function. An image can be bound to one of the shader functions using the resprective metadata attributes.

// txrv[name, ...]
// xtrf[name, ...]

Textures can be accessed via their buffer indices. If multiple textures are specified they are assigned to the texture buffers in the given order.

fragment float fragmentShader(texture2d<float> texture [[texture(0)]], ...) {}

Texture2DArray

texture1d_array<float> texture

A texture type that is not supported in Shaderific.

Texture2DMultisample

texture2d_ms<float> texture

A texture type that is not supported in Shaderific.

TextureCube

texturecube<float> texture

A texture type that allows to access image data in the vertex and fragment shader function. Cubemap data is detected automatically when an image is imported based on the condition that the height has to be six times the width of the image. An image can be bound to one of the shader functions using the resprective metadata attributes.

// txrv[name, ...]
// xtrf[name, ...]

Textures can be accessed via their buffer indices. If multiple textures are specified they are assigned to the texture buffers in the given order.

fragment float fragmentShader(texture2d<float> texture [[texture(0)]], ...) {}

TextureCubeArray

texturecube_array<float> texture

A texture type that is not supported in Shaderific.

Texture3D

texture3d<float> texture

A texture type that is not supported in Shaderific.

Texture2DMultisampleArray

texture2d_ms_array<float> texture

A texture type that is not supported in Shaderific.

TextureBuffer

texture_buffer<float> texture

A texture type that is not supported in Shaderific.