Attributes of the Metal-based engine implementation. More...
#include <GraphicsTypes.h>
Public Attributes | |
Uint32 | DynamicHeapPageSize = 4 << 20 |
Uint32 | QueryPoolSizes [QUERY_TYPE_NUM_TYPES] |
Query pool size for each query type. | |
![]() | |
Int32 | EngineAPIVersion = DILIGENT_API_VERSION |
Engine API version number. | |
Uint32 | AdapterId = DEFAULT_ADAPTER_ID |
Version | GraphicsAPIVersion = {} |
Minimum required graphics API version (feature level for Direct3D). | |
const ImmediateContextCreateInfo * | pImmediateContextInfo = nullptr |
Uint32 | NumImmediateContexts = 0 |
The number of immediate contexts in pImmediateContextInfo array. | |
Uint32 | NumDeferredContexts = 0 |
The number of deferred contexts to create when initializing the engine. | |
DeviceFeatures | Features |
Requested device features. | |
Bool | EnableValidation = false |
VALIDATION_FLAGS | ValidationFlags = VALIDATION_FLAG_NONE |
Validation options, see Diligent::VALIDATION_FLAGS. | |
struct IMemoryAllocator * | pRawMemAllocator = nullptr |
IThreadPool * | pAsyncShaderCompilationThreadPool = nullptr |
Uint32 | NumAsyncShaderCompilationThreads = 0xFFFFFFFFu |
When AsyncShaderCompilation is enabled, the maximum number of threads that can be used to compile shaders. | |
const OpenXRAttribs * | pXRAttribs = nullptr |
Additional Inherited Members | |
![]() | |
void | SetValidationLevel (VALIDATION_LEVEL Level) |
Sets the validation options corresponding to the specified level, see Diligent::VALIDATION_LEVEL. | |
Attributes of the Metal-based engine implementation.
Uint32 Diligent::EngineMtlCreateInfo::DynamicHeapPageSize = 4 << 20 |
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 Diligent::EngineMtlCreateInfo::QueryPoolSizes[QUERY_TYPE_NUM_TYPES] |
Query pool size for each query type.
In Metal, queries are allocated from the pool, and one pool may contain multiple queries of different types. QueryPoolSizes array specifies the number of queries of each type that will be allocated from a single pool. The engine will create as many pools as necessary to satisfy the requested number of queries.