mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-31 14:52:11 +01:00
[spirv] Implement constvec4b32
This commit is contained in:
parent
028c6198e4
commit
8b6dd0544e
@ -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(
|
||||
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user