소스 검색

GeometryView: Fix for TextureMapExampleComponent

Signed-off-by: antonmic <[email protected]>
antonmic 10 달 전
부모
커밋
13e20ccc43
2개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      Gem/Code/Source/RHI/TextureMapExampleComponent.cpp
  2. 0 1
      Gem/Code/Source/RHI/TextureMapExampleComponent.h

+ 1 - 1
Gem/Code/Source/RHI/TextureMapExampleComponent.cpp

@@ -609,7 +609,7 @@ namespace AtomSampleViewer
             commandList->SetScissors(&m_scissor, 1);
 
             RHI::DrawIndexed drawIndexed;
-            drawIndexed.m_indexCount = m_bufferViews[target].m_indexBufferView.GetByteCount() / sizeof(uint16_t);
+            drawIndexed.m_indexCount = m_bufferViews[target].m_geometryView.GetIndexBufferView().GetByteCount() / sizeof(uint16_t);
             m_bufferViews[target].m_geometryView.SetDrawArguments(drawIndexed);
 
             const RHI::DeviceShaderResourceGroup* shaderResourceGroups[] = {

+ 0 - 1
Gem/Code/Source/RHI/TextureMapExampleComponent.h

@@ -57,7 +57,6 @@ namespace AtomSampleViewer
         struct BufferViewData
         {
             AZ::RHI::GeometryView m_geometryView;
-            AZ::RHI::IndexBufferView m_indexBufferView;
             AZ::RHI::InputStreamLayout m_inputStreamLayout;
         };