diff --git a/Runtime/Graphics/CMetroidModelInstance.hpp b/Runtime/Graphics/CMetroidModelInstance.hpp index 166dd19a3..f44af73d4 100644 --- a/Runtime/Graphics/CMetroidModelInstance.hpp +++ b/Runtime/Graphics/CMetroidModelInstance.hpp @@ -9,7 +9,7 @@ namespace urde { class CBooModel; -class CBooSurface; +struct CBooSurface; class CMetroidModelInstance { diff --git a/Runtime/Graphics/Shaders/CLineRendererShadersGLSL.cpp b/Runtime/Graphics/Shaders/CLineRendererShadersGLSL.cpp index f1eafee83..73e39e42a 100644 --- a/Runtime/Graphics/Shaders/CLineRendererShadersGLSL.cpp +++ b/Runtime/Graphics/Shaders/CLineRendererShadersGLSL.cpp @@ -124,7 +124,7 @@ struct OGLLineDataBindingFactory : CLineRendererShaders::IDataBindingFactory boo::IGraphicsBuffer* uniforms[] = {ubufInfo.first}; boo::PipelineStage stages[] = {boo::PipelineStage::Vertex}; - size_t ubufOffs[] = {ubufInfo.second}; + size_t ubufOffs[] = {size_t(ubufInfo.second)}; size_t ubufSizes[] = {sizeof(CLineRenderer::SDrawUniform)}; renderer.m_shaderBind = ctx.newShaderDataBinding(pipeline, vtxFmt, vbufInfo.first, @@ -184,7 +184,7 @@ struct VulkanLineDataBindingFactory : CLineRendererShaders::IDataBindingFactory boo::IGraphicsBuffer* uniforms[] = {ubufInfo.first}; boo::PipelineStage stages[] = {boo::PipelineStage::Vertex}; - size_t ubufOffs[] = {ubufInfo.second}; + size_t ubufOffs[] = {size_t(ubufInfo.second)}; size_t ubufSizes[] = {sizeof(CLineRenderer::SDrawUniform)}; renderer.m_shaderBind = ctx.newShaderDataBinding(pipeline, nullptr, vbufInfo.first, diff --git a/Runtime/Graphics/Shaders/CLineRendererShadersHLSL.cpp b/Runtime/Graphics/Shaders/CLineRendererShadersHLSL.cpp index d1456a052..20b94d5fa 100644 --- a/Runtime/Graphics/Shaders/CLineRendererShadersHLSL.cpp +++ b/Runtime/Graphics/Shaders/CLineRendererShadersHLSL.cpp @@ -110,7 +110,7 @@ struct HLSLLineDataBindingFactory : CLineRendererShaders::IDataBindingFactory boo::IGraphicsBuffer* uniforms[] = {ubufInfo.first}; boo::PipelineStage stages[] = {boo::PipelineStage::Vertex}; - size_t ubufOffs[] = {ubufInfo.second}; + size_t ubufOffs[] = {size_t(ubufInfo.second)}; size_t ubufSizes[] = {sizeof(CLineRenderer::SDrawUniform)}; renderer.m_shaderBind = ctx.newShaderDataBinding(pipeline, nullptr, vbufInfo.first,