Skip to content

Commit

Permalink
Some cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
jpd002 committed Nov 21, 2023
1 parent 9a640b9 commit 8cae7d1
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions Source/gs/GSH_Vulkan/GSH_VulkanDrawDesktop.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -486,16 +486,9 @@ Framework::Vulkan::CShaderModule CDrawDesktop::CreateFragmentShader(const PIPELI

auto getTextureColor =
[&](CInt2Value textureIuv, CFloat4Lvalue& textureColor) {
if(caps.textureUseMemoryCopy)
{
textureColor = CDrawUtils::GetTextureColor(b, caps.textureFormat, caps.clutFormat, textureIuv,
memoryBufferCopy, clutBuffer, texSwizzleTable, texBufAddress, texBufWidth, texCsa);
}
else
{
textureColor = CDrawUtils::GetTextureColor(b, caps.textureFormat, caps.clutFormat, textureIuv,
memoryBuffer, clutBuffer, texSwizzleTable, texBufAddress, texBufWidth, texCsa);
}
auto textureSource = caps.textureUseMemoryCopy ? memoryBufferCopy : memoryBuffer;
textureColor = CDrawUtils::GetTextureColor(b, caps.textureFormat, caps.clutFormat, textureIuv,
textureSource, clutBuffer, texSwizzleTable, texBufAddress, texBufWidth, texCsa);
if(caps.textureHasAlpha)
{
CDrawUtils::ExpandAlpha(b, caps.textureFormat, caps.clutFormat, caps.textureBlackIsTransparent, textureColor, texA0, texA1);
Expand Down

0 comments on commit 8cae7d1

Please sign in to comment.