mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-27 17:22:46 +01:00
spirv: Remove unnecesary variable for clip distances
This commit is contained in:
parent
0c4cf3b9eb
commit
09e1927b70
2 changed files with 2 additions and 6 deletions
|
@ -176,9 +176,6 @@ void EmitContext::DefineCommonTypes(const Info& info) {
|
||||||
AddCapability(spv::Capability::Float64);
|
AddCapability(spv::Capability::Float64);
|
||||||
F64.Define(*this, TypeFloat(64), "f64");
|
F64.Define(*this, TypeFloat(64), "f64");
|
||||||
}
|
}
|
||||||
if (info.stores_clip_distance) {
|
|
||||||
Array8F32 = Name(TypeArray(F32[1], Constant(U32[1], 8)), "array_8_f32");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void EmitContext::DefineCommonConstants() {
|
void EmitContext::DefineCommonConstants() {
|
||||||
|
@ -509,7 +506,8 @@ void EmitContext::DefineOutputs(const Info& info) {
|
||||||
if (stage == Stage::Fragment) {
|
if (stage == Stage::Fragment) {
|
||||||
throw NotImplementedException("Storing PointSize in Fragment stage");
|
throw NotImplementedException("Storing PointSize in Fragment stage");
|
||||||
}
|
}
|
||||||
clip_distances = DefineOutput(*this, Array8F32, spv::BuiltIn::ClipDistance);
|
const Id type{TypeArray(F32[1], Constant(U32[1], 8U))};
|
||||||
|
clip_distances = DefineOutput(*this, type, spv::BuiltIn::ClipDistance);
|
||||||
}
|
}
|
||||||
for (size_t i = 0; i < info.stores_generics.size(); ++i) {
|
for (size_t i = 0; i < info.stores_generics.size(); ++i) {
|
||||||
if (info.stores_generics[i]) {
|
if (info.stores_generics[i]) {
|
||||||
|
|
|
@ -67,8 +67,6 @@ public:
|
||||||
VectorTypes F16;
|
VectorTypes F16;
|
||||||
VectorTypes F64;
|
VectorTypes F64;
|
||||||
|
|
||||||
Id Array8F32{};
|
|
||||||
|
|
||||||
Id true_value{};
|
Id true_value{};
|
||||||
Id false_value{};
|
Id false_value{};
|
||||||
Id u32_zero_value{};
|
Id u32_zero_value{};
|
||||||
|
|
Loading…
Reference in a new issue