diff options
Diffstat (limited to 'src/gpu/vk')
-rw-r--r-- | src/gpu/vk/GrVkPipeline.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gpu/vk/GrVkPipeline.cpp b/src/gpu/vk/GrVkPipeline.cpp index a70a78504e..b72b05b850 100644 --- a/src/gpu/vk/GrVkPipeline.cpp +++ b/src/gpu/vk/GrVkPipeline.cpp @@ -85,10 +85,10 @@ static void setup_vertex_input_state(const GrPrimitiveProcessor& primProc, const GrGeometryProcessor::Attribute& attrib = primProc.getAttrib(attribIndex); VkVertexInputAttributeDescription& vkAttrib = attributeDesc[attribIndex]; vkAttrib.location = attribIndex; // for now assume location = attribIndex - vkAttrib.binding = InputRate::kPerInstance == attrib.fInputRate ? instanceBinding - : vertexBinding; - vkAttrib.format = attrib_type_to_vkformat(attrib.fType); - vkAttrib.offset = attrib.fOffsetInRecord; + vkAttrib.binding = + InputRate::kPerInstance == attrib.inputRate() ? instanceBinding : vertexBinding; + vkAttrib.format = attrib_type_to_vkformat(attrib.type()); + vkAttrib.offset = attrib.offsetInRecord(); } } |