glsl: Implement derivatives and YDirection

plus some other misc additions/changed
This commit is contained in:
ameerj 2021-05-27 20:31:03 -04:00
parent ed14d31f66
commit a752ec88d0
8 changed files with 87 additions and 81 deletions

View file

@ -37,6 +37,9 @@ void EmitImageSampleImplicitLod([[maybe_unused]] EmitContext& ctx, [[maybe_unuse
if (!offset.IsEmpty()) {
throw NotImplementedException("Offset");
}
if (info.type != TextureType::Color2D) {
throw NotImplementedException("Texture type: {}", info.type.Value());
}
const auto texture{Texture(ctx, info, index)};
ctx.AddF32x4("{}=texture({},{});", inst, texture, coords);
}