1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-03 13:24:20 +01:00

[spirv] Add OpConstantNull

This commit is contained in:
Philip Rebohle 2024-03-07 16:10:32 +01:00
parent 3a6992ea97
commit 707ad6f328
2 changed files with 10 additions and 0 deletions

View File

@ -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();

View File

@ -217,6 +217,9 @@ namespace dxvk {
uint32_t constUndef(
uint32_t typeId);
uint32_t constNull(
uint32_t typeId);
uint32_t lateConst32(
uint32_t typeId);