mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2026-08-31 02:35:39 +00:00
[vulkan] Fix incorrect offset application for Array2D textures (#3696)
Earlier we were taking the coords and adding them to coords instead of actually taking offsets and adding it to coord Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/3696 Reviewed-by: MaranBr <maranbr@eden-emu.dev> Reviewed-by: crueter <crueter@eden-emu.dev> Co-authored-by: wildcard <wildcard@eden-emu.dev> Co-committed-by: wildcard <wildcard@eden-emu.dev>
This commit is contained in:
@@ -343,8 +343,8 @@ void AddOffsetToCoordinates(EmitContext& ctx, const IR::TextureInstInfo& info, I
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case TextureType::ColorArray2D:
|
case TextureType::ColorArray2D:
|
||||||
offset = ctx.OpCompositeConstruct(ctx.U32[3], ctx.OpCompositeExtract(ctx.U32[1], coords, 0),
|
offset = ctx.OpCompositeConstruct(ctx.U32[3], ctx.OpCompositeExtract(ctx.U32[1], offset, 0),
|
||||||
ctx.OpCompositeExtract(ctx.U32[1], coords, 1),
|
ctx.OpCompositeExtract(ctx.U32[1], offset, 1),
|
||||||
ctx.u32_zero_value);
|
ctx.u32_zero_value);
|
||||||
[[fallthrough]];
|
[[fallthrough]];
|
||||||
case TextureType::Color3D: {
|
case TextureType::Color3D: {
|
||||||
|
|||||||
Reference in New Issue
Block a user