mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-11-14 19:24:57 +00:00
vk_shader: Implement function ImageLoad (Used by Kirby Start Allies)
Please enter the commit message for your changes. Lines starting
This commit is contained in:
parent
72d4c6fee0
commit
f6f0762e81
1 changed files with 6 additions and 2 deletions
|
@ -1748,8 +1748,12 @@ private:
|
||||||
}
|
}
|
||||||
|
|
||||||
Expression ImageLoad(Operation operation) {
|
Expression ImageLoad(Operation operation) {
|
||||||
UNIMPLEMENTED();
|
const auto& meta{std::get<MetaImage>(operation.GetMeta())};
|
||||||
return {};
|
|
||||||
|
const Id coords = GetCoordinates(operation, Type::Int);
|
||||||
|
const Id texel = OpImageRead(t_uint4, GetImage(operation), coords);
|
||||||
|
|
||||||
|
return {OpCompositeExtract(t_uint, texel, meta.element), Type::Uint};
|
||||||
}
|
}
|
||||||
|
|
||||||
Expression ImageStore(Operation operation) {
|
Expression ImageStore(Operation operation) {
|
||||||
|
|
Loading…
Reference in a new issue