Skip to main content
GET
Get a shader

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

shader_id
string
required

Query Parameters

view
string | null

full adds source and variants.

Allowed value: "full"

Response

Successful Response

A stored shader. variants and source come back with ?view=full only.

id
string
required

Its id, for effects[].shader.id.

Example:

"sh_01J8QR2K5VKDGN2T4FBM3CZYX7"

name
string
required
lang
string
required
hash
string
required

SHA-256 of "sksl\n" + source, 64 lowercase hex digits: the entry's identity.

jitter
boolean
required

Compiled in Jitter's dialect.

status
enum<string>
required

failed shaders cannot render; errors says why.

Available options:
compiled,
failed
params
ShaderParamSpec · object[]
required
shared
boolean
required

A shared shader every workspace can use, and none can delete.

created_at
string<date-time>
required
updated_at
string<date-time>
required
errors
ShaderCompileError · object[]

The compiler's errors, with positions.

variant_hashes
Variant Hashes · object

SHA-256 of each variant (glsl330, glsles300, wgsl), as the engines check them.

source
string | null

The SkSL source (?view=full).

variants
Variants · object | null

The compiled variants' text (?view=full).