mirror of
https://github.com/microsoft/DirectXTex.git
synced 2025-07-09 11:40:14 +02:00
Clean up GPU-based validation warnings (#309)
This commit is contained in:
parent
371643fce2
commit
126d15c39a
@ -1283,7 +1283,7 @@ namespace
|
|||||||
&defaultHeapProperties,
|
&defaultHeapProperties,
|
||||||
D3D12_HEAP_FLAG_NONE,
|
D3D12_HEAP_FLAG_NONE,
|
||||||
&desc,
|
&desc,
|
||||||
D3D12_RESOURCE_STATE_COPY_DEST,
|
D3D12_RESOURCE_STATE_COMMON,
|
||||||
nullptr,
|
nullptr,
|
||||||
IID_ID3D12Resource, reinterpret_cast<void**>(texture));
|
IID_ID3D12Resource, reinterpret_cast<void**>(texture));
|
||||||
if (SUCCEEDED(hr))
|
if (SUCCEEDED(hr))
|
||||||
|
@ -542,7 +542,11 @@ HRESULT DirectX::CreateTextureEx(
|
|||||||
&defaultHeapProperties,
|
&defaultHeapProperties,
|
||||||
D3D12_HEAP_FLAG_NONE,
|
D3D12_HEAP_FLAG_NONE,
|
||||||
&desc,
|
&desc,
|
||||||
|
#if (defined(_XBOX_ONE) && defined(_TITLE)) || defined(_GAMING_XBOX)
|
||||||
D3D12_RESOURCE_STATE_COPY_DEST,
|
D3D12_RESOURCE_STATE_COPY_DEST,
|
||||||
|
#else
|
||||||
|
D3D12_RESOURCE_STATE_COMMON,
|
||||||
|
#endif
|
||||||
nullptr,
|
nullptr,
|
||||||
IID_GRAPHICS_PPV_ARGS(ppResource));
|
IID_GRAPHICS_PPV_ARGS(ppResource));
|
||||||
|
|
||||||
|
@ -617,7 +617,7 @@ namespace
|
|||||||
&defaultHeapProperties,
|
&defaultHeapProperties,
|
||||||
D3D12_HEAP_FLAG_NONE,
|
D3D12_HEAP_FLAG_NONE,
|
||||||
&desc,
|
&desc,
|
||||||
D3D12_RESOURCE_STATE_COPY_DEST,
|
D3D12_RESOURCE_STATE_COMMON,
|
||||||
nullptr,
|
nullptr,
|
||||||
IID_ID3D12Resource,
|
IID_ID3D12Resource,
|
||||||
reinterpret_cast<void**>(&tex));
|
reinterpret_cast<void**>(&tex));
|
||||||
|
@ -101,14 +101,13 @@ jobs:
|
|||||||
inputs:
|
inputs:
|
||||||
script: g++ --version
|
script: g++ --version
|
||||||
- task: CmdLine@2
|
- task: CmdLine@2
|
||||||
# The error checks are commented out due to a bug with vcpkg not returning 0 on success.
|
|
||||||
displayName: VCPKG install headers
|
displayName: VCPKG install headers
|
||||||
inputs:
|
inputs:
|
||||||
script: |
|
script: |
|
||||||
call vcpkg install directxmath
|
call vcpkg install directxmath
|
||||||
REM @if ERRORLEVEL 1 goto error
|
@if ERRORLEVEL 1 goto error
|
||||||
call vcpkg install directx-headers
|
call vcpkg install directx-headers
|
||||||
REM @if ERRORLEVEL 1 goto error
|
@if ERRORLEVEL 1 goto error
|
||||||
:finish
|
:finish
|
||||||
@echo --- VCPKG COMPLETE ---
|
@echo --- VCPKG COMPLETE ---
|
||||||
exit /b 0
|
exit /b 0
|
||||||
@ -203,9 +202,9 @@ jobs:
|
|||||||
inputs:
|
inputs:
|
||||||
script: |
|
script: |
|
||||||
call vcpkg install directxmath
|
call vcpkg install directxmath
|
||||||
REM @if ERRORLEVEL 1 goto error
|
@if ERRORLEVEL 1 goto error
|
||||||
call vcpkg install directx-headers
|
call vcpkg install directx-headers
|
||||||
REM @if ERRORLEVEL 1 goto error
|
@if ERRORLEVEL 1 goto error
|
||||||
:finish
|
:finish
|
||||||
@echo --- VCPKG COMPLETE ---
|
@echo --- VCPKG COMPLETE ---
|
||||||
exit /b 0
|
exit /b 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user