Ver código fonte

Fixing compilation issues when building ASV on Android (#5)

Signed-off-by: moraaar <[email protected]>
Signed-off-by: amzn-phist <[email protected]>
moraaar 3 anos atrás
pai
commit
34671dc5f3
1 arquivos alterados com 2 adições e 3 exclusões
  1. 2 3
      Gem/Code/Source/RHI/XRExampleComponent.cpp

+ 2 - 3
Gem/Code/Source/RHI/XRExampleComponent.cpp

@@ -35,7 +35,7 @@ namespace AtomSampleViewer
 
 
     void XRExampleComponent::Activate()
     void XRExampleComponent::Activate()
     {
     {
-        m_depthStencilID = AZ::RHI::AttachmentId{ AZStd::string::format("DepthStencilID_% u", GetId()) };
+        m_depthStencilID = AZ::RHI::AttachmentId{ AZStd::string::format("DepthStencilID_%llu", GetId()) };
         CreateCubeInputAssemblyBuffer();
         CreateCubeInputAssemblyBuffer();
         CreateCubePipeline();
         CreateCubePipeline();
         CreateScope();
         CreateScope();
@@ -51,7 +51,6 @@ namespace AtomSampleViewer
     void XRExampleComponent::OnFramePrepare(AZ::RHI::FrameGraphBuilder& frameGraphBuilder)
     void XRExampleComponent::OnFramePrepare(AZ::RHI::FrameGraphBuilder& frameGraphBuilder)
     {
     {
         AZ::Matrix4x4 projection = AZ::Matrix4x4::CreateIdentity();
         AZ::Matrix4x4 projection = AZ::Matrix4x4::CreateIdentity();
-        AZ::Matrix4x4 vpMat = AZ::Matrix4x4::CreateIdentity();
 
 
         AZ::RPI::XRRenderingInterface* xrSystem = AZ::RPI::RPISystemInterface::Get()->GetXRSystem();
         AZ::RPI::XRRenderingInterface* xrSystem = AZ::RPI::RPISystemInterface::Get()->GetXRSystem();
         if (xrSystem && xrSystem->ShouldRender())
         if (xrSystem && xrSystem->ShouldRender())
@@ -373,7 +372,7 @@ namespace AtomSampleViewer
             decltype(prepareFunction),
             decltype(prepareFunction),
             decltype(compileFunction),
             decltype(compileFunction),
             decltype(executeFunction)>(
             decltype(executeFunction)>(
-                AZ::RHI::ScopeId{ AZStd::string::format("XRSample_Id_% u", GetId()) },
+                AZ::RHI::ScopeId{ AZStd::string::format("XRSample_Id_%llu", GetId()) },
                 ScopeData{},
                 ScopeData{},
                 prepareFunction,
                 prepareFunction,
                 compileFunction,
                 compileFunction,