Fix warnings and errors on clang-3.9
This commit is contained in:
@@ -108,7 +108,7 @@ int main( int /*argc*/, char ** /*argv*/ )
|
||||
vk::su::updateDescriptorSets(
|
||||
device,
|
||||
descriptorSet,
|
||||
{ { vk::DescriptorType::eUniformBuffer, uniformBufferData.buffer, vk::UniqueBufferView() } },
|
||||
{ { vk::DescriptorType::eUniformBuffer, uniformBufferData.buffer, {} } },
|
||||
{} );
|
||||
|
||||
vk::UniquePipelineCache pipelineCache = device->createPipelineCacheUnique( vk::PipelineCacheCreateInfo() );
|
||||
@@ -158,7 +158,7 @@ int main( int /*argc*/, char ** /*argv*/ )
|
||||
commandBuffer->resetQueryPool( queryPool.get(), 0, 2 );
|
||||
|
||||
vk::ClearValue clearValues[2];
|
||||
clearValues[0].color = vk::ClearColorValue( std::array<float, 4>( { 0.2f, 0.2f, 0.2f, 0.2f } ) );
|
||||
clearValues[0].color = vk::ClearColorValue( std::array<float, 4>( { { 0.2f, 0.2f, 0.2f, 0.2f } } ) );
|
||||
clearValues[1].depthStencil = vk::ClearDepthStencilValue( 1.0f, 0 );
|
||||
commandBuffer->beginRenderPass( vk::RenderPassBeginInfo( renderPass.get(),
|
||||
framebuffers[currentBuffer.value].get(),
|
||||
|
||||
Reference in New Issue
Block a user