mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-16 00:17:03 +00:00
Fix all Windows warnings
This commit is contained in:
committed by
Corentin Wallez
parent
8fca4a21b7
commit
83e779d8f2
@@ -142,7 +142,6 @@ namespace utils {
|
||||
resourceBarrier.Flags = D3D12_RESOURCE_BARRIER_FLAG_NONE;
|
||||
commandList->ResourceBarrier(1, &resourceBarrier);
|
||||
ASSERT_SUCCESS(commandList->Close());
|
||||
ID3D12CommandList* commandLists[] = { commandList.Get() };
|
||||
backend::d3d12::ExecuteCommandLists(backendDevice, { commandList.Get() });
|
||||
|
||||
backend::d3d12::NextSerial(backendDevice);
|
||||
@@ -166,7 +165,6 @@ namespace utils {
|
||||
resourceBarrier.Flags = D3D12_RESOURCE_BARRIER_FLAG_NONE;
|
||||
commandList->ResourceBarrier(1, &resourceBarrier);
|
||||
ASSERT_SUCCESS(commandList->Close());
|
||||
ID3D12CommandList* commandLists[] = { commandList.Get() };
|
||||
backend::d3d12::ExecuteCommandLists(backendDevice, { commandList.Get() });
|
||||
}
|
||||
|
||||
@@ -184,7 +182,6 @@ namespace utils {
|
||||
resourceBarrier.Flags = D3D12_RESOURCE_BARRIER_FLAG_NONE;
|
||||
commandList->ResourceBarrier(1, &resourceBarrier);
|
||||
ASSERT_SUCCESS(commandList->Close());
|
||||
ID3D12CommandList* commandLists[] = { commandList.Get() };
|
||||
backend::d3d12::ExecuteCommandLists(backendDevice, { commandList.Get() });
|
||||
}
|
||||
|
||||
|
||||
@@ -51,7 +51,7 @@ namespace utils {
|
||||
}
|
||||
|
||||
size_t size = (result.cend() - result.cbegin());
|
||||
builder.SetSource(size, result.cbegin());
|
||||
builder.SetSource(static_cast<uint32_t>(size), result.cbegin());
|
||||
|
||||
#ifdef DUMP_SPIRV_ASSEMBLY
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user