SPIR-V OpLines now contain filenames from HLSL-style #lines.
This commit is contained in:
parent
127cea5c9a
commit
5d43c4aac7
18 changed files with 754 additions and 39 deletions
25
Test/spv.pp.line.frag
Normal file
25
Test/spv.pp.line.frag
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
#version 140
|
||||
|
||||
uniform sampler1D texSampler1D;
|
||||
uniform sampler2D texSampler2D;
|
||||
|
||||
varying float blend;
|
||||
varying vec4 u;
|
||||
|
||||
in vec2 coords2D;
|
||||
|
||||
void main()
|
||||
{
|
||||
float blendscale = 1.789;
|
||||
float bias = 2.0;
|
||||
float coords1D = 1.789;
|
||||
vec4 color = vec4(0.0, 0.0, 0.0, 0.0);
|
||||
#line 53
|
||||
color += texture (texSampler1D, coords1D);
|
||||
color += texture (texSampler1D, coords1D, bias);
|
||||
#line 102
|
||||
color += texture (texSampler2D, coords2D);
|
||||
color += texture (texSampler2D, coords2D, bias);
|
||||
|
||||
gl_FragColor = mix(color, u, blend * blendscale);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue