Skip to content

Commit

Permalink
HnRenderDelegate: limit dynamic texture array size to 94 on Apple pla…
Browse files Browse the repository at this point in the history
…tforms
  • Loading branch information
TheMostDiligent committed Mar 28, 2024
1 parent 9b11f82 commit 36038a0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Hydrogent/src/HnRenderDelegate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,10 @@ static std::shared_ptr<USD_Renderer> CreateUSDRenderer(const HnRenderDelegate::C
if (TexturesArraySize == 0)
TexturesArraySize = 256;

#if PLATFORM_APPLE
TexturesArraySize = std::min(TexturesArraySize, 96u);
#endif

USDRendererCI.ShaderTexturesArrayMode = USD_Renderer::SHADER_TEXTURE_ARRAY_MODE_DYNAMIC;
USDRendererCI.MaterialTexturesArraySize = TexturesArraySize;
}
Expand Down

0 comments on commit 36038a0

Please sign in to comment.