1
0
mirror of https://github.com/microsoft/DirectXTex synced 2024-11-08 14:00:05 +00:00

Clean up GPU-based validation warnings (#309)

This commit is contained in:
Chuck Walbourn 2023-01-31 09:57:16 -08:00 committed by GitHub
parent 371643fce2
commit 126d15c39a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 7 deletions

View File

@ -1283,7 +1283,7 @@ namespace
&defaultHeapProperties,
D3D12_HEAP_FLAG_NONE,
&desc,
D3D12_RESOURCE_STATE_COPY_DEST,
D3D12_RESOURCE_STATE_COMMON,
nullptr,
IID_ID3D12Resource, reinterpret_cast<void**>(texture));
if (SUCCEEDED(hr))

View File

@ -542,7 +542,11 @@ HRESULT DirectX::CreateTextureEx(
&defaultHeapProperties,
D3D12_HEAP_FLAG_NONE,
&desc,
#if (defined(_XBOX_ONE) && defined(_TITLE)) || defined(_GAMING_XBOX)
D3D12_RESOURCE_STATE_COPY_DEST,
#else
D3D12_RESOURCE_STATE_COMMON,
#endif
nullptr,
IID_GRAPHICS_PPV_ARGS(ppResource));

View File

@ -617,7 +617,7 @@ namespace
&defaultHeapProperties,
D3D12_HEAP_FLAG_NONE,
&desc,
D3D12_RESOURCE_STATE_COPY_DEST,
D3D12_RESOURCE_STATE_COMMON,
nullptr,
IID_ID3D12Resource,
reinterpret_cast<void**>(&tex));

View File

@ -101,14 +101,13 @@ jobs:
inputs:
script: g++ --version
- task: CmdLine@2
# The error checks are commented out due to a bug with vcpkg not returning 0 on success.
displayName: VCPKG install headers
inputs:
script: |
call vcpkg install directxmath
REM @if ERRORLEVEL 1 goto error
@if ERRORLEVEL 1 goto error
call vcpkg install directx-headers
REM @if ERRORLEVEL 1 goto error
@if ERRORLEVEL 1 goto error
:finish
@echo --- VCPKG COMPLETE ---
exit /b 0
@ -203,9 +202,9 @@ jobs:
inputs:
script: |
call vcpkg install directxmath
REM @if ERRORLEVEL 1 goto error
@if ERRORLEVEL 1 goto error
call vcpkg install directx-headers
REM @if ERRORLEVEL 1 goto error
@if ERRORLEVEL 1 goto error
:finish
@echo --- VCPKG COMPLETE ---
exit /b 0