glsl: Implement derivatives and YDirection
plus some other misc additions/changed
This commit is contained in:
parent
ed14d31f66
commit
a752ec88d0
8 changed files with 87 additions and 81 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue