spirv: Remove subgroup id

This commit is contained in:
IndecisiveTurtle 2024-08-02 23:24:49 +03:00
parent 9a38e6ccd8
commit b08db4603e
3 changed files with 1 additions and 3 deletions

View File

@ -11,7 +11,7 @@ Id SubgroupScope(EmitContext& ctx) {
}
Id EmitWarpId(EmitContext& ctx) {
return ctx.OpLoad(ctx.U32[1], ctx.subgroup_id);
UNREACHABLE();
}
Id EmitLaneId(EmitContext& ctx) {

View File

@ -225,7 +225,6 @@ void EmitContext::DefineInputs(const Info& info) {
break;
}
case Stage::Fragment:
subgroup_id = DefineVariable(U32[1], spv::BuiltIn::SubgroupId, spv::StorageClass::Input);
subgroup_local_invocation_id = DefineVariable(
U32[1], spv::BuiltIn::SubgroupLocalInvocationId, spv::StorageClass::Input);
Decorate(subgroup_local_invocation_id, spv::Decoration::Flat);

View File

@ -180,7 +180,6 @@ public:
Id workgroup_id{};
Id local_invocation_id{};
Id subgroup_id{};
Id subgroup_local_invocation_id{};
Id image_u32{};