mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-03-06 20:58:37 +01:00
[spirv] Add OpConstantNull
This commit is contained in:
parent
3a6992ea97
commit
707ad6f328
2 changed files with 10 additions and 0 deletions
|
@ -470,6 +470,13 @@ namespace dxvk {
|
|||
}
|
||||
|
||||
|
||||
uint32_t SpirvModule::constNull(
|
||||
uint32_t typeId) {
|
||||
return this->defConst(spv::OpConstantNull,
|
||||
typeId, 0, nullptr);
|
||||
}
|
||||
|
||||
|
||||
uint32_t SpirvModule::lateConst32(
|
||||
uint32_t typeId) {
|
||||
uint32_t resultId = this->allocateId();
|
||||
|
|
|
@ -217,6 +217,9 @@ namespace dxvk {
|
|||
uint32_t constUndef(
|
||||
uint32_t typeId);
|
||||
|
||||
uint32_t constNull(
|
||||
uint32_t typeId);
|
||||
|
||||
uint32_t lateConst32(
|
||||
uint32_t typeId);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue