mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-24 07:55:46 +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
92e3fb6e2f
commit
c646835eb0
1 changed files with 6 additions and 2 deletions
|
@ -1748,8 +1748,12 @@ private:
|
|||
}
|
||||
|
||||
Expression ImageLoad(Operation operation) {
|
||||
UNIMPLEMENTED();
|
||||
return {};
|
||||
const auto& meta{std::get<MetaImage>(operation.GetMeta())};
|
||||
|
||||
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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue