@@ -1268,13 +1268,14 @@ class D3D12MA_API Allocator : public IUnknownImpl
1268
1268
It internally uses `ID3D12Device10::CreateCommittedResource3` or `ID3D12Device10::CreatePlacedResource2`.
1269
1269
1270
1270
To work correctly, `ID3D12Device10` interface must be available in the current system. Otherwise, `E_NOINTERFACE` is returned.
1271
+ If you use `pCastableFormats`, `ID3D12Device12` must albo be available.
1271
1272
*/
1272
1273
HRESULT CreateResource3 (const ALLOCATION_DESC* pAllocDesc,
1273
1274
const D3D12_RESOURCE_DESC1* pResourceDesc,
1274
1275
D3D12_BARRIER_LAYOUT InitialLayout,
1275
1276
const D3D12_CLEAR_VALUE* pOptimizedClearValue,
1276
1277
UINT32 NumCastableFormats,
1277
- DXGI_FORMAT* pCastableFormats,
1278
+ const DXGI_FORMAT* pCastableFormats,
1278
1279
Allocation** ppAllocation,
1279
1280
REFIID riidResource,
1280
1281
void ** ppvResource);
@@ -1353,19 +1354,20 @@ class D3D12MA_API Allocator : public IUnknownImpl
1353
1354
1354
1355
#ifdef __ID3D12Device10_INTERFACE_DEFINED__
1355
1356
/* * \brief Similar to Allocator::CreateAliasingResource1, but there are initial layout instead of state and
1356
- castable formats list
1357
+ castable formats list.
1357
1358
1358
1359
It internally uses `ID3D12Device10::CreatePlacedResource2`.
1359
1360
1360
1361
To work correctly, `ID3D12Device10` interface must be available in the current system. Otherwise, `E_NOINTERFACE` is returned.
1362
+ If you use `pCastableFormats`, `ID3D12Device12` must albo be available.
1361
1363
*/
1362
1364
HRESULT CreateAliasingResource2 (Allocation* pAllocation,
1363
1365
UINT64 AllocationLocalOffset,
1364
1366
const D3D12_RESOURCE_DESC1* pResourceDesc,
1365
1367
D3D12_BARRIER_LAYOUT InitialLayout,
1366
1368
const D3D12_CLEAR_VALUE* pOptimizedClearValue,
1367
1369
UINT32 NumCastableFormats,
1368
- DXGI_FORMAT* pCastableFormats,
1370
+ const DXGI_FORMAT* pCastableFormats,
1369
1371
REFIID riidResource,
1370
1372
void ** ppvResource);
1371
1373
#endif // #ifdef __ID3D12Device10_INTERFACE_DEFINED__
0 commit comments