[spirv] Implement constvec4b32

This commit is contained in:
Joshua Ashton 2019-10-06 18:17:46 +01:00 committed by Philip Rebohle
parent 028c6198e4
commit 8b6dd0544e
2 changed files with 23 additions and 0 deletions

View File

@ -278,6 +278,23 @@ namespace dxvk {
return this->constComposite(vectorTypeId, args.size(), args.data());
}
uint32_t SpirvModule::constvec4b32(
bool x,
bool y,
bool z,
bool w) {
std::array<uint32_t, 4> args = {{
this->constBool(x), this->constBool(y),
this->constBool(z), this->constBool(w),
}};
uint32_t scalarTypeId = this->defBoolType();
uint32_t vectorTypeId = this->defVectorType(scalarTypeId, 4);
return this->constComposite(vectorTypeId, args.size(), args.data());
}
uint32_t SpirvModule::constvec4u32(

View File

@ -139,6 +139,12 @@ namespace dxvk {
int32_t y,
int32_t z,
int32_t w);
uint32_t constvec4b32(
bool x,
bool y,
bool z,
bool w);
uint32_t constvec4u32(
uint32_t x,