summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngine
diff options
context:
space:
mode:
authorassiduous <assiduous@diligentgraphics.com>2020-11-15 06:16:29 +0000
committerassiduous <assiduous@diligentgraphics.com>2020-11-15 06:16:29 +0000
commit7ec8d3a43bcb45c81246f13e60415afe58113f58 (patch)
tree633cc89bb37ab56fa1b6d127ed18ab2b655a08a9 /Graphics/GraphicsEngine
parentFixed linux build error (diff)
downloadDiligentCore-7ec8d3a43bcb45c81246f13e60415afe58113f58.tar.gz
DiligentCore-7ec8d3a43bcb45c81246f13e60415afe58113f58.zip
Added DynamicHeapPageSize member to EngineMtlCreateInfo
Diffstat (limited to 'Graphics/GraphicsEngine')
-rw-r--r--Graphics/GraphicsEngine/interface/GraphicsTypes.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/Graphics/GraphicsEngine/interface/GraphicsTypes.h b/Graphics/GraphicsEngine/interface/GraphicsTypes.h
index e77c3830..d85540ac 100644
--- a/Graphics/GraphicsEngine/interface/GraphicsTypes.h
+++ b/Graphics/GraphicsEngine/interface/GraphicsTypes.h
@@ -2073,8 +2073,8 @@ struct EngineD3D12CreateInfo DILIGENT_DERIVE(EngineCreateInfo)
Uint32 NumCommandsToFlushCmdList DEFAULT_INITIALIZER(256);
/// A device context uses dynamic heap when it needs to allocate temporary
- /// CPU-accessible memory to update a resource via IBufer::UpdateData() or
- /// ITexture::UpdateData(), or to map dynamic resources.
+ /// CPU-accessible memory to update a resource via IDeviceContext::UpdateBuffer() or
+ /// IDeviceContext::UpdateTexture(), or to map dynamic resources.
/// Device contexts first request a chunk of memory from global dynamic
/// resource manager and then suballocate from this chunk in a lock-free
/// fashion. DynamicHeapPageSize defines the size of this chunk.
@@ -2215,7 +2215,8 @@ struct EngineVkCreateInfo DILIGENT_DERIVE(EngineCreateInfo)
/// Page size of the upload heap that is allocated by immediate/deferred
/// contexts from the global memory manager to perform lock-free dynamic
/// suballocations.
- /// Upload heap is used to update resources with UpdateData()
+ /// Upload heap is used to update resources with IDeviceContext::UpdateBuffer()
+ /// and IDeviceContext::UpdateTexture().
Uint32 UploadHeapPageSize DEFAULT_INITIALIZER(1 << 20);
/// Size of the dynamic heap (the buffer that is used to suballocate
@@ -2250,6 +2251,13 @@ typedef struct EngineVkCreateInfo EngineVkCreateInfo;
/// Attributes of the Metal-based engine implementation
struct EngineMtlCreateInfo DILIGENT_DERIVE(EngineCreateInfo)
+ /// A device context uses dynamic heap when it needs to allocate temporary
+ /// CPU-accessible memory to update a resource via IDeviceContext::UpdateBuffer() or
+ /// IDeviceContext::UpdateTexture(), or to map dynamic resources.
+ /// Device contexts first request a chunk of memory from global dynamic
+ /// resource manager and then suballocate from this chunk in a lock-free
+ /// fashion. DynamicHeapPageSize defines the size of this chunk.
+ Uint32 DynamicHeapPageSize DEFAULT_INITIALIZER(4 << 20);
};
typedef struct EngineMtlCreateInfo EngineMtlCreateInfo;