vulkanpushconstants: Don't report invalid ranges

Vulkan doesn't accept empty ranges, so simply don't report
them.
This commit is contained in:
Georges Basile Stavracas Neto 2017-01-04 15:37:02 -02:00 committed by Benjamin Otte
parent c6ec982ac6
commit 67894ace64

View File

@ -101,13 +101,13 @@ gsk_vulkan_push_constants_push_fragment (GskVulkanPushConstants *self,
uint32_t
gst_vulkan_push_constants_get_range_count (void)
{
return 2;
return 1;
}
const VkPushConstantRange *
gst_vulkan_push_constants_get_ranges (void)
{
static const VkPushConstantRange ranges[2] = {
static const VkPushConstantRange ranges[1] = {
{
.stageFlags = VK_SHADER_STAGE_VERTEX_BIT,
.offset = G_STRUCT_OFFSET (GskVulkanPushConstantsWire, vertex),