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:
parent
371643fce2
commit
126d15c39a
@ -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))
|
||||
|
@ -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));
|
||||
|
||||
|
@ -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));
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user