From 3ca22500cd0e92af6f7e7052f257f2e14a777334 Mon Sep 17 00:00:00 2001 From: Tony Barbour Date: Fri, 26 Jun 2015 10:18:34 -0600 Subject: vulkan.h: Bug 13616 Clarification of types of sample counts --- demos/cube.c | 2 +- demos/tri.c | 2 +- include/vulkan.h | 2 +- layers/draw_state.cpp | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/demos/cube.c b/demos/cube.c index 13fbbbe1..f86c6933 100644 --- a/demos/cube.c +++ b/demos/cube.c @@ -1389,7 +1389,7 @@ static void demo_prepare_pipeline(struct demo *demo) ms.sType = VK_STRUCTURE_TYPE_PIPELINE_MS_STATE_CREATE_INFO; ms.sampleMask = 1; ms.multisampleEnable = VK_FALSE; - ms.samples = 1; + ms.rasterSamples = 1; // Two stages: vs and fs pipeline.stageCount = 2; diff --git a/demos/tri.c b/demos/tri.c index 1855f559..ff1431b8 100644 --- a/demos/tri.c +++ b/demos/tri.c @@ -1006,7 +1006,7 @@ static void demo_prepare_pipeline(struct demo *demo) ms.sType = VK_STRUCTURE_TYPE_PIPELINE_MS_STATE_CREATE_INFO; ms.sampleMask = 1; ms.multisampleEnable = VK_FALSE; - ms.samples = 1; + ms.rasterSamples = 1; // Two stages: vs and fs pipeline.stageCount = 2; diff --git a/include/vulkan.h b/include/vulkan.h index eaab4a1f..4e1265ae 100644 --- a/include/vulkan.h +++ b/include/vulkan.h @@ -1742,7 +1742,7 @@ typedef struct VkPipelineMsStateCreateInfo_ { VkStructureType sType; // Must be VK_STRUCTURE_TYPE_PIPELINE_MS_STATE_CREATE_INFO const void* pNext; // Pointer to next structure - uint32_t samples; + uint32_t rasterSamples; bool32_t multisampleEnable; // optional (GL45) bool32_t sampleShadingEnable; // optional (GL45) float minSampleShading; // optional (GL45) diff --git a/layers/draw_state.cpp b/layers/draw_state.cpp index 783ef912..0c0265be 100644 --- a/layers/draw_state.cpp +++ b/layers/draw_state.cpp @@ -631,7 +631,7 @@ static uint32_t getNumSamples(const VkPipeline pipeline) PIPELINE_NODE* pPipe = pipelineMap[pipeline]; if (VK_STRUCTURE_TYPE_PIPELINE_MS_STATE_CREATE_INFO == pPipe->msStateCI.sType) { if (pPipe->msStateCI.multisampleEnable) - return pPipe->msStateCI.samples; + return pPipe->msStateCI.rasterSamples; } return 1; } -- cgit v1.2.3