clang-win compile files for skia-dawn.
Do explicit uint8_t -> float conversions (as was previously done for TextureVk). Add a missing #include. Change-Id: If7616ec00e2ea2cf55b9b0cc966b0436a5a21d9d Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/12280 Reviewed-by: Kai Ninomiya <kainino@chromium.org> Commit-Queue: Stephen White <senorblanco@chromium.org>
This commit is contained in:
parent
c57b180208
commit
fd90d767ba
src/dawn_native/d3d12
|
@ -539,7 +539,9 @@ namespace dawn_native { namespace d3d12 {
|
|||
DAWN_TRY_ASSIGN(rtvHeap, descriptorHeapAllocator->AllocateCPUHeap(
|
||||
D3D12_DESCRIPTOR_HEAP_TYPE_RTV, 1));
|
||||
D3D12_CPU_DESCRIPTOR_HANDLE rtvHandle = rtvHeap.GetCPUHandle(0);
|
||||
const float clearColorRGBA[4] = {clearColor, clearColor, clearColor, clearColor};
|
||||
const float fClearColor = static_cast<float>(clearColor);
|
||||
const float clearColorRGBA[4] = {fClearColor, fClearColor, fClearColor,
|
||||
fClearColor};
|
||||
|
||||
// TODO(natlee@microsoft.com): clear all array layers for 2D array textures
|
||||
for (uint32_t i = baseMipLevel; i < baseMipLevel + levelCount; i++) {
|
||||
|
|
Loading…
Reference in New Issue