Skip to content

Commit

Permalink
Fixed Windows warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
robertosfield committed Oct 4, 2023
1 parent bc6c0ce commit 531402d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vsg/state/ViewDependentState.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ void ViewDependentState::init(ResourceRequirements& requirements)

if (active)
{
uint32_t numLights = viewDetails.lights.size();
uint32_t numLights = static_cast<uint32_t>(viewDetails.lights.size());
uint32_t numShadowMaps = 0;
for (auto& light : viewDetails.lights)
{
Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit 531402d

Please sign in to comment.