glsl: Implement derivatives and YDirection
plus some other misc additions/changed
This commit is contained in:
parent
ac6135774f
commit
b96d76fa7e
8 changed files with 87 additions and 81 deletions
|
@ -224,8 +224,9 @@ void EmitIsHelperInvocation(EmitContext& ctx) {
|
|||
NotImplemented();
|
||||
}
|
||||
|
||||
void EmitYDirection(EmitContext& ctx) {
|
||||
NotImplemented();
|
||||
void EmitYDirection(EmitContext& ctx, IR::Inst& inst) {
|
||||
ctx.uses_y_direction = true;
|
||||
ctx.AddF32("{}=gl_FrontMaterial.ambient.a;", inst);
|
||||
}
|
||||
|
||||
void EmitLoadLocal(EmitContext& ctx, std::string_view word_offset) {
|
||||
|
@ -650,25 +651,4 @@ void EmitShuffleButterfly(EmitContext& ctx, IR::Inst& inst, std::string_view val
|
|||
NotImplemented();
|
||||
}
|
||||
|
||||
void EmitFSwizzleAdd(EmitContext& ctx, std::string_view op_a, std::string_view op_b,
|
||||
std::string_view swizzle) {
|
||||
NotImplemented();
|
||||
}
|
||||
|
||||
void EmitDPdxFine(EmitContext& ctx, std::string_view op_a) {
|
||||
NotImplemented();
|
||||
}
|
||||
|
||||
void EmitDPdyFine(EmitContext& ctx, std::string_view op_a) {
|
||||
NotImplemented();
|
||||
}
|
||||
|
||||
void EmitDPdxCoarse(EmitContext& ctx, std::string_view op_a) {
|
||||
NotImplemented();
|
||||
}
|
||||
|
||||
void EmitDPdyCoarse(EmitContext& ctx, std::string_view op_a) {
|
||||
NotImplemented();
|
||||
}
|
||||
|
||||
} // namespace Shader::Backend::GLSL
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue