texture1d<float> texture
A texture type that is not supported in Shaderific.
texture1d_array<float> texture
A texture type that is not supported in Shaderific.
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)]], ...) {}
texture1d_array<float> texture
A texture type that is not supported in Shaderific.
texture2d_ms<float> texture
A texture type that is not supported in Shaderific.
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)]], ...) {}
texturecube_array<float> texture
A texture type that is not supported in Shaderific.
texture3d<float> texture
A texture type that is not supported in Shaderific.
texture2d_ms_array<float> texture
A texture type that is not supported in Shaderific.
texture_buffer<float> texture
A texture type that is not supported in Shaderific.