summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngine
diff options
context:
space:
mode:
authorassiduous <assiduous@diligentgraphics.com>2020-08-16 00:18:23 +0000
committerassiduous <assiduous@diligentgraphics.com>2020-08-16 00:18:23 +0000
commitdb11621f6683a1e96a1fe45231e8d9eef539994d (patch)
tree26d878f11dffba24fb9d68d42171131afe719b9d /Graphics/GraphicsEngine
parentAdded render passes to the API (fixed https://github.com/DiligentGraphics/Dil... (diff)
downloadDiligentCore-db11621f6683a1e96a1fe45231e8d9eef539994d.tar.gz
DiligentCore-db11621f6683a1e96a1fe45231e8d9eef539994d.zip
Fixed 32-bit Windows build
Diffstat (limited to 'Graphics/GraphicsEngine')
-rw-r--r--Graphics/GraphicsEngine/include/RenderPassBase.hpp4
-rw-r--r--Graphics/GraphicsEngine/interface/Framebuffer.h2
-rw-r--r--Graphics/GraphicsEngine/interface/RenderPass.h2
3 files changed, 4 insertions, 4 deletions
diff --git a/Graphics/GraphicsEngine/include/RenderPassBase.hpp b/Graphics/GraphicsEngine/include/RenderPassBase.hpp
index c2a6b5c1..fbc65dd7 100644
--- a/Graphics/GraphicsEngine/include/RenderPassBase.hpp
+++ b/Graphics/GraphicsEngine/include/RenderPassBase.hpp
@@ -193,8 +193,8 @@ public:
else
DstSubpass.pPreserveAttachments = nullptr;
}
- VERIFY_EXPR(pCurrAttachmentRef - m_pAttachmentReferences == TotalAttachmentReferencesCount);
- VERIFY_EXPR(pCurrPreserveAttachment - m_pPreserveAttachments == TotalPreserveAttachmentsCount);
+ VERIFY_EXPR(pCurrAttachmentRef - m_pAttachmentReferences == static_cast<ptrdiff_t>(TotalAttachmentReferencesCount));
+ VERIFY_EXPR(pCurrPreserveAttachment - m_pPreserveAttachments == static_cast<ptrdiff_t>(TotalPreserveAttachmentsCount));
if (Desc.DependencyCount != 0)
{
diff --git a/Graphics/GraphicsEngine/interface/Framebuffer.h b/Graphics/GraphicsEngine/interface/Framebuffer.h
index 9b00ea70..3bc10705 100644
--- a/Graphics/GraphicsEngine/interface/Framebuffer.h
+++ b/Graphics/GraphicsEngine/interface/Framebuffer.h
@@ -73,7 +73,7 @@ typedef struct FramebufferDesc FramebufferDesc;
class IFramebuffer : public IDeviceObject
{
public:
- virtual const FramebufferDesc& GetDesc() const override = 0;
+ virtual const FramebufferDesc& DILIGENT_CALL_TYPE GetDesc() const override = 0;
};
#else
diff --git a/Graphics/GraphicsEngine/interface/RenderPass.h b/Graphics/GraphicsEngine/interface/RenderPass.h
index 3f822e0c..61feca48 100644
--- a/Graphics/GraphicsEngine/interface/RenderPass.h
+++ b/Graphics/GraphicsEngine/interface/RenderPass.h
@@ -369,7 +369,7 @@ typedef struct RenderPassDesc RenderPassDesc;
class IRenderPass : public IDeviceObject
{
public:
- virtual const RenderPassDesc& GetDesc() const override = 0;
+ virtual const RenderPassDesc& DILIGENT_CALL_TYPE GetDesc() const override = 0;
};
#else