Shader

backend.Shader (Abstract)

Abstract type representing a compiled GPU shader program in the Clay backend.

This is a lightweight wrapper around ShaderImpl that provides type safety while allowing implicit conversions. Shaders contain compiled vertex and fragment shader code that runs on the GPU to transform vertices and calculate pixel colors.

In the Clay backend, shaders are managed by the Shaders subsystem and cached to avoid recompilation. The actual shader implementation varies by platform (OpenGL, WebGL, etc.).

See: ShaderImpl The underlying implementation class, Shaders The shader management subsystem, ceramic.Shader For the high-level shader API

Type Conversions

From:

  • [backend.ShaderImpl](/api-docs/clay-native/backend/ShaderImpl/)

To:

  • [backend.ShaderImpl](/api-docs/clay-native/backend/ShaderImpl/)