From 531402db1a46ed3f8e6c883cf10165abe27d40c5 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 4 Oct 2023 15:31:21 +0100 Subject: [PATCH] Fixed Windows warnings --- src/vsg/state/ViewDependentState.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vsg/state/ViewDependentState.cpp b/src/vsg/state/ViewDependentState.cpp index 952633755..330ac6a16 100644 --- a/src/vsg/state/ViewDependentState.cpp +++ b/src/vsg/state/ViewDependentState.cpp @@ -197,7 +197,7 @@ void ViewDependentState::init(ResourceRequirements& requirements) if (active) { - uint32_t numLights = viewDetails.lights.size(); + uint32_t numLights = static_cast(viewDetails.lights.size()); uint32_t numShadowMaps = 0; for (auto& light : viewDetails.lights) { @@ -303,7 +303,7 @@ void ViewDependentState::init(ResourceRequirements& requirements) properties.format = VK_FORMAT_D32_SFLOAT; properties.imageViewType = VK_IMAGE_VIEW_TYPE_2D_ARRAY; - auto shadowMapData = floatArray3D::create(1, 1, 1, 0.0, properties); + auto shadowMapData = floatArray3D::create(1, 1, 1, 0.0f, properties); shadowDepthImage = Image::create(shadowMapData); shadowDepthImage->usage = VK_IMAGE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT | VK_IMAGE_USAGE_SAMPLED_BIT | VK_IMAGE_USAGE_TRANSFER_DST_BIT;