mirror of
https://git.zaroz.cloud/nintendo-back-up/yuzu/yuzu-mainline.git
synced 2025-12-16 13:22:41 +00:00
glasm: Implement derivative instructions on GLASM
This commit is contained in:
@@ -99,20 +99,20 @@ void EmitFSwizzleAdd(EmitContext&, ScalarF32, ScalarF32, ScalarU32) {
|
||||
throw NotImplementedException("GLASM instruction");
|
||||
}
|
||||
|
||||
void EmitDPdxFine(EmitContext&, ScalarF32) {
|
||||
throw NotImplementedException("GLASM instruction");
|
||||
void EmitDPdxFine(EmitContext& ctx, IR::Inst& inst, ScalarF32 p) {
|
||||
ctx.Add("DDX.FINE {}.x,{};", inst, p);
|
||||
}
|
||||
|
||||
void EmitDPdyFine(EmitContext&, ScalarF32) {
|
||||
throw NotImplementedException("GLASM instruction");
|
||||
void EmitDPdyFine(EmitContext& ctx, IR::Inst& inst, ScalarF32 p) {
|
||||
ctx.Add("DDY.FINE {}.x,{};", inst, p);
|
||||
}
|
||||
|
||||
void EmitDPdxCoarse(EmitContext&, ScalarF32) {
|
||||
throw NotImplementedException("GLASM instruction");
|
||||
void EmitDPdxCoarse(EmitContext& ctx, IR::Inst& inst, ScalarF32 p) {
|
||||
ctx.Add("DDX.COARSE {}.x,{};", inst, p);
|
||||
}
|
||||
|
||||
void EmitDPdyCoarse(EmitContext&, ScalarF32) {
|
||||
throw NotImplementedException("GLASM instruction");
|
||||
void EmitDPdyCoarse(EmitContext& ctx, IR::Inst& inst, ScalarF32 p) {
|
||||
ctx.Add("DDY.COARSE {}.x,{};", inst, p);
|
||||
}
|
||||
|
||||
} // namespace Shader::Backend::GLASM
|
||||
|
||||
Reference in New Issue
Block a user