diff options
Diffstat (limited to 'examples/reflection-parameter-blocks/shader.slang')
| -rw-r--r-- | examples/reflection-parameter-blocks/shader.slang | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/examples/reflection-parameter-blocks/shader.slang b/examples/reflection-parameter-blocks/shader.slang new file mode 100644 index 000000000..6419bda3a --- /dev/null +++ b/examples/reflection-parameter-blocks/shader.slang @@ -0,0 +1,26 @@ +// shader.slang + +// This shader is part of the `reflection-parameter-blocks` +// example program. +// +// This file is an example program that *only* declares +// shader parameters in the global scope, and *only* uses +// explicit parameter blocks. + +import common; + +ParameterBlock<Environment> environment; +ParameterBlock<View> view; +ParameterBlock<Material> material; +ParameterBlock<Mesh> mesh; + +[shader("compute")] +void main() +{ + float4 r = 0; + + use(r, mesh); + use(r, material); + use(r, view); + use(r, environment); +} |
