diff options
Diffstat (limited to 'shaderc/glslc.1')
-rw-r--r-- | shaderc/glslc.1 | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/shaderc/glslc.1 b/shaderc/glslc.1 index 58f6c721e..76fdb2edb 100644 --- a/shaderc/glslc.1 +++ b/shaderc/glslc.1 @@ -1,13 +1,13 @@ '\" t .\" Title: glslc .\" Author: [see the "AUTHOR(S)" section] -.\" Generator: Asciidoctor 2.0.10 -.\" Date: 2020-10-24 +.\" Generator: Asciidoctor 2.0.12 +.\" Date: 2021-02-27 .\" Manual: \ \& .\" Source: \ \& .\" Language: English .\" -.TH "`GLSLC`" "1" "2020-10-24" "\ \&" "\ \&" +.TH "`GLSLC`" "1" "2021-02-27" "\ \&" "\ \&" .ie \n(.g .ds Aq \(aq .el .ds Aq ' .ss \n[.ss] 0 @@ -33,6 +33,7 @@ .sp .if n .RS 4 .nf +.fam C glslc [\-\-help] glslc [\-h] @@ -58,6 +59,7 @@ glslc [\-c|\-S|\-E] [\-w] [\-Werror] [\-o outfile] shader... +.fam .fi .if n .RE .SH "DESCRIPTION" @@ -886,7 +888,9 @@ In a GLSL shader, use a \f(CRlocation\fP layout qualifier: .sp .if n .RS 4 .nf +.fam C layout(location = 1) in vec4 x; +.fam .fi .if n .RE .sp @@ -903,11 +907,13 @@ In an HLSL shader, use a \f(CRvk::location\fP attribute: .sp .if n .RS 4 .nf +.fam C [[vk::location(1)]] float4 FooShader( [[vk::location(0)]] float4 a, [[vk::location(2)]] float4 b) : COLOR0 { return a + b; } +.fam .fi .if n .RE .SS "Warning and Error Options" @@ -1195,7 +1201,9 @@ a \f(CRbinding\fP layout qualifier. For example: .sp .if n .RS 4 .nf +.fam C layout(binding = 12) uniform texture2D; +.fam .fi .if n .RE .SS "\f(CR\-fhlsl\-iomap\fP" @@ -1259,9 +1267,11 @@ Example: .sp .if n .RS 4 .nf +.fam C # For a texture in register t1, use set 1 binding 0. # For a texture in register t2, use set 1 binding 3 glslc \-x hlsl foo.frag \-fresource\-set\-binding t1 1 0 t2 1 3 +.fam .fi .if n .RE .sp @@ -1269,9 +1279,11 @@ If a stage is specified, only affects the specified stage. .sp .if n .RS 4 .nf +.fam C # Same as the previous example, but the settings only apply # to fragment (pixel) shaders. glslc \-x hlsl foo.frag \-fresource\-set\-binding frag t1 1 0 t2 1 3 +.fam .fi .if n .RE .SH "DIVERGENCE FROM AND EXTENSIONS TO GLSL SPECIFICATIONS" @@ -1324,9 +1336,11 @@ the following three forms: .sp .if n .RS 4 .nf +.fam C #line line\-number #line line\-number integer\-source\-string\-index #line line\-number "source\-filename" +.fam .fi .if n .RE .sp |