shader: Implement front face
This commit is contained in:
parent
a806b29cb9
commit
f0031babeb
5 changed files with 12 additions and 0 deletions
|
@ -302,6 +302,9 @@ void EmitContext::DefineInputs(const Info& info) {
|
|||
base_vertex = DefineInput(*this, U32[1], spv::BuiltIn::BaseVertex);
|
||||
}
|
||||
}
|
||||
if (info.loads_front_face) {
|
||||
front_face = DefineInput(*this, U1, spv::BuiltIn::FrontFacing);
|
||||
}
|
||||
for (size_t index = 0; index < info.loads_generics.size(); ++index) {
|
||||
if (!info.loads_generics[index]) {
|
||||
continue;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue