Commit 37386b02 by Jamie Madill Committed by Commit Bot

Vulkan: Cache object pointers in ContextVk.

Small performance optimization. Bug: angleproject:2786 Change-Id: Ib01c1762d438ffb72ec25bf05135a7d3271d6aee Reviewed-on: https://chromium-review.googlesource.com/1188954 Commit-Queue: Jamie Madill <jmadill@chromium.org> Reviewed-by: 's avatarFrank Henigman <fjhenigman@chromium.org>
parent 88fc6da3
...@@ -218,6 +218,11 @@ class ContextVk : public ContextImpl, public vk::Context ...@@ -218,6 +218,11 @@ class ContextVk : public ContextImpl, public vk::Context
bool mIndexBufferDirty; bool mIndexBufferDirty;
bool mDescriptorSetsDirty; bool mDescriptorSetsDirty;
// Cached back-end objects.
VertexArrayVk *mVertexArray;
FramebufferVk *mDrawFramebuffer;
ProgramVk *mProgram;
// The offset we had the last time we bound the index buffer. // The offset we had the last time we bound the index buffer.
const GLvoid *mLastIndexBufferOffset; const GLvoid *mLastIndexBufferOffset;
GLenum mCurrentDrawElementsType; GLenum mCurrentDrawElementsType;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment