diff --git a/include/Refresh.h b/include/Refresh.h index 737e057..ad83c6e 100644 --- a/include/Refresh.h +++ b/include/Refresh.h @@ -336,6 +336,7 @@ typedef enum Refresh_SamplerAddressMode REFRESH_SAMPLERADDRESSMODE_CLAMP_TO_BORDER } Refresh_SamplerAddressMode; +/* FIXME: we should probably make a library-level decision about color types */ typedef enum Refresh_BorderColor { REFRESH_BORDERCOLOR_FLOAT_TRANSPARENT_BLACK = 0, @@ -520,6 +521,7 @@ typedef struct Refresh_ShaderStageState uint64_t uniformBufferSize; } Refresh_ShaderStageState; +/* FIXME: this is awkwardly named */ typedef struct Refresh_TopologyState { Refresh_PrimitiveType topology; @@ -549,7 +551,7 @@ typedef struct Refresh_RasterizerState typedef struct Refresh_MultisampleState { Refresh_SampleCount multisampleCount; - const uint32_t *sampleMask; + const uint32_t sampleMask; } Refresh_MultisampleState; typedef struct Refresh_DepthStencilState diff --git a/src/Refresh_Driver_Vulkan.c b/src/Refresh_Driver_Vulkan.c index cb5b986..8d9e59c 100644 --- a/src/Refresh_Driver_Vulkan.c +++ b/src/Refresh_Driver_Vulkan.c @@ -4758,7 +4758,7 @@ static Refresh_GraphicsPipeline* VULKAN_CreateGraphicsPipeline( multisampleStateCreateInfo.sampleShadingEnable = VK_FALSE; multisampleStateCreateInfo.minSampleShading = 1.0f; multisampleStateCreateInfo.pSampleMask = - pipelineCreateInfo->multisampleState.sampleMask; + &pipelineCreateInfo->multisampleState.sampleMask; multisampleStateCreateInfo.alphaToCoverageEnable = VK_FALSE; multisampleStateCreateInfo.alphaToOneEnable = VK_FALSE;