blob: 6419bda3acda530446150610a043c05d377a7857 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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);
}
|