1
0
Fork 0
forked from suyu/suyu

glasm: Implement gl_WorkGroupID

This commit is contained in:
ReinUsesLisp 2021-05-18 21:06:19 -03:00 committed by ameerj
parent 0a42277a4f
commit e8ed904805
2 changed files with 3 additions and 3 deletions

View file

@ -66,7 +66,7 @@ void EmitSetZFlag(EmitContext& ctx);
void EmitSetSFlag(EmitContext& ctx);
void EmitSetCFlag(EmitContext& ctx);
void EmitSetOFlag(EmitContext& ctx);
void EmitWorkgroupId(EmitContext& ctx);
void EmitWorkgroupId(EmitContext& ctx, IR::Inst& inst);
void EmitLocalInvocationId(EmitContext& ctx, IR::Inst& inst);
void EmitInvocationId(EmitContext& ctx);
void EmitSampleId(EmitContext& ctx);

View file

@ -144,8 +144,8 @@ void EmitSetOFlag(EmitContext& ctx) {
NotImplemented();
}
void EmitWorkgroupId(EmitContext& ctx) {
NotImplemented();
void EmitWorkgroupId(EmitContext& ctx, IR::Inst& inst) {
ctx.Add("MOV.S {},invocation.groupid;", inst);
}
void EmitLocalInvocationId(EmitContext& ctx, IR::Inst& inst) {