diff options
author | Brian Salomon <bsalomon@google.com> | 2018-05-29 15:33:06 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-05-30 18:11:48 +0000 |
commit | 70132d0c73431320d4e637868e98d8b36da05eff (patch) | |
tree | 19e3f536a0312a48e6acf80ec4e58024bec2a0df /src/gpu/vk | |
parent | 8f480d91eea1421c1f9d7251699b710fd0cf2197 (diff) |
Make GrPrimitiveProcessor::Attribute a class, hide data members.
Change-Id: I008881d79c82fdde6bb68fe2218e62ccc9c538dd
Reviewed-on: https://skia-review.googlesource.com/130600
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
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(); } } |