mirror of
https://github.com/yuzu-emu/sirit.git
synced 2024-11-26 00:05:39 +01:00
Add OpKill
This commit is contained in:
parent
93d42e62da
commit
3641e1de45
@ -194,6 +194,9 @@ class Module {
|
|||||||
/// Return a value from a function.
|
/// Return a value from a function.
|
||||||
Id OpReturnValue(Id value);
|
Id OpReturnValue(Id value);
|
||||||
|
|
||||||
|
/// Fragment-shader discard.
|
||||||
|
Id OpKill();
|
||||||
|
|
||||||
// Debug
|
// Debug
|
||||||
|
|
||||||
/// Assign a name string to a reference.
|
/// Assign a name string to a reference.
|
||||||
|
@ -59,4 +59,9 @@ Id Module::OpReturnValue(Id value) {
|
|||||||
return AddCode(std::move(op));
|
return AddCode(std::move(op));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Id Module::OpKill() {
|
||||||
|
AddCapability(spv::Capability::Shader);
|
||||||
|
return AddCode(std::make_unique<Op>(spv::Op::OpKill));
|
||||||
|
}
|
||||||
|
|
||||||
} // namespace Sirit
|
} // namespace Sirit
|
||||||
|
Loading…
Reference in New Issue
Block a user