Keywords

This page categorizes all keywords there are in DSHL and provides references to their description.

Data types

Data types and variables

  • float

  • float1

  • int

  • bool

  • float2

  • half2

  • short2

  • float3

  • int4

  • float4

  • short4

  • half4

  • float4x4

  • texture

  • buffer

  • const_buffer

Channels

Channels

  • color8

  • ubyte4

  • short2n

  • short4n

  • ushort2n

  • ushort4n

  • udec3

  • dec3n

  • extra

  • vcol

  • pos

  • norm

  • tc

  • lightmap

  • bounding_pack

  • signed_pack

  • unsigned_pack

  • mul_1k

  • mul_2k

  • mul_4k

  • mul_8k

  • mul_16k

  • mul_32767

Conditionals and booleans

Conditionals

  • if

  • else

  • false

  • true

  • none

  • NULL

  • maybe

Data types modifiers

Data types and variables

  • always_referenced

  • no_warnings

  • channel

  • dynamic

  • static

  • const

  • local

  • global

Materials

Materials

  • material

  • texture

  • diffuse

  • emissive

  • specular

  • two_sided

  • real_two_sided

  • render_stage

  • render_trans

Hardware

Hardware defines

  • hardware

  • vulkan

  • metal

  • metaliOS

  • pc

  • dx11

  • dx12

  • xbox

  • scarlett

  • ps4

  • ps5

  • fsh_4_0

  • fsh_5_0

  • fsh_6_0

  • fsh_6_6

  • bindless

Macros

Macros

  • define_macro_if_not_defined

  • macro

  • endmacro

Intervals

Intervals

  • interval

  • assume

  • optional

Includes

Includes

  • include

  • include_optional

Common directives

Common directives

  • no_dynstcode

  • dont_render

  • no_ablend

  • error

Shader blocks

Shader blocks

  • block

  • supports

  • register

Shaders

Shaders

  • shader

  • compile

Graphics pipeline settings

Pipeline state configuration

  • z_write

  • z_test

  • z_bias

  • z_func

  • slope_z_bias

  • stencil

  • stencil_func

  • stencil_ref

  • stencil_pass

  • stencil_fail

  • stencil_zfail

  • blend_asrc

  • blend_adst

  • blend_src

  • blend_dst

  • cull_mode

  • alpha_to_coverage

  • color_write

  • view_instances

Global constants

Global constants

  • globtm

  • projtm

  • viewprojtm

  • local_view_x

  • local_view_y

  • local_view_z

  • local_view_pos

  • world_local_x

  • world_local_y

  • world_local_z

  • world_local_pos

Still uncategorized

  • immediate_dword_count