mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-25 08:51:05 +01:00
[glsl-in] Fix builtin types
This commit is contained in:
1 parent
3a4d6fa295
commit
93436047f3
1 file changed
+3
-3
@@ -94,7 +94,7 @@ impl Program<'_> {
|
||||
),
|
||||
"gl_VertexIndex" => add_builtin(
|
||||
TypeInner::Scalar {
|
||||
kind: ScalarKind::Sint,
|
||||
kind: ScalarKind::Uint,
|
||||
width: 4,
|
||||
},
|
||||
BuiltIn::VertexIndex,
|
||||
@@ -103,7 +103,7 @@ impl Program<'_> {
|
||||
),
|
||||
"gl_InstanceIndex" => add_builtin(
|
||||
TypeInner::Scalar {
|
||||
kind: ScalarKind::Sint,
|
||||
kind: ScalarKind::Uint,
|
||||
width: 4,
|
||||
},
|
||||
BuiltIn::InstanceIndex,
|
||||
@@ -123,7 +123,7 @@ impl Program<'_> {
|
||||
"gl_FrontFacing" => add_builtin(
|
||||
TypeInner::Scalar {
|
||||
kind: ScalarKind::Bool,
|
||||
width: 1,
|
||||
width: crate::BOOL_WIDTH,
|
||||
},
|
||||
BuiltIn::FrontFacing,
|
||||
false,
|
||||
|
||||
Reference in new issue
Block a user