@@ -354,26 +354,33 @@ namespace gpgmm::d3d12 {
354
354
std::string DebugName;
355
355
};
356
356
357
- /* * \struct ALLOCATOR_FEATURE_DATA_SUBALLOCATION_SUPPORT
357
+ /* * \struct FEATURE_DATA_RESOURCE_SUBALLOCATION_SUPPORT
358
358
359
359
Details the resource allocator limitations, including if sharing resources between command
360
360
queues is coherent.
361
361
*/
362
- struct ALLOCATOR_FEATURE_DATA_SUBALLOCATION_SUPPORT {
362
+ struct FEATURE_DATA_RESOURCE_SUBALLOCATION_SUPPORT {
363
363
/* * \brief Describes multi-queue resource access behavior.
364
364
365
365
For example, if two allocations belong to the same resource where each allocation is
366
366
referenced with a different command-queue, will accessing one stomp over the other. D3D12
367
- does not guarentee such behavior is safe but it is defined per GPU vendor.
367
+ does not guarentee such behavior is safe but is it well-defined behavior based on the GPU
368
+ vendor.
368
369
*/
369
370
bool IsResourceAccessAlwaysCoherent;
370
371
};
371
372
372
- /* * \enum ALLOCATOR_FEATURE
373
- Additional capabilities featured by resource allocators.
373
+ /* * \enum FEATURE
374
+
375
+ Defines constants that specify a resource allocator feature to query about. When you
376
+ want to query for the level to which an allocator supports a feature, pass one of these values
377
+ to ResourceAllocator::CheckFeatureSupport.
374
378
*/
375
- enum ALLOCATOR_FEATURE {
376
- RESOURCE_ALLOCATOR_FEATURE_SUBALLOCATION_SUPPORT,
379
+ enum FEATURE {
380
+ /* * \brief Indicates a query for the level of support for sub-allocated resources. The
381
+ corresponding data structure for this value is FEATURE_DATA_RESOURCE_SUBALLOCATION_SUPPORT
382
+ */
383
+ FEATURE_RESOURCE_SUBALLOCATION_SUPPORT,
377
384
};
378
385
379
386
using RESOURCE_ALLOCATOR_INFO = MemoryAllocatorInfo;
@@ -507,21 +514,21 @@ namespace gpgmm::d3d12 {
507
514
508
515
/* * \brief Gets information about the features that are supported by the resource allocator.
509
516
510
- @param feature A constant from the ALLOCATOR_FEATURE enumeration describing the feature(s)
517
+ @param feature A constant from the FEATURE enumeration describing the feature(s)
511
518
that you want to query for support.
512
519
@param pFeatureSupportData A pointer to the data structure that corresponds to the value of
513
520
the feature parameter. To determine the corresponding data structure for each constant, see
514
- ALLOCATOR_FEATURE .
521
+ FEATURE .
515
522
@param featureSupportDataSize The sie of the structure pointed by the pFeatureSupportData
516
523
parameter.
517
524
518
525
\return Returns S_OK if successful. Returns E_INVALIDARG if unsupported data type is passed
519
526
to pFeatureSupportData or if a size mismatch is detected for the featureSupportDataSize
520
527
parameter.
521
528
*/
522
- HRESULT CheckFeatureSupport (ALLOCATOR_FEATURE feature,
529
+ HRESULT CheckFeatureSupport (FEATURE feature,
523
530
void * pFeatureSupportData,
524
- uint32_t featureSupportDataSize);
531
+ uint32_t featureSupportDataSize) const ;
525
532
526
533
private:
527
534
friend BufferAllocator;
0 commit comments