mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-16 08:27:05 +00:00
Some small optimizations and style issues for input state
Bug=dawn:107 Change-Id: I8ecfb39a2bff11b678bd8548ec0725ba061ef333 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/6081 Commit-Queue: Kai Ninomiya <kainino@chromium.org> Reviewed-by: Corentin Wallez <cwallez@chromium.org> Reviewed-by: Kai Ninomiya <kainino@chromium.org>
This commit is contained in:
committed by
Commit Bot service account
parent
d754fb2034
commit
494552b886
@@ -197,12 +197,8 @@ namespace dawn_native { namespace opengl {
|
||||
void RenderPipeline::CreateVAOForInputState(const InputStateDescriptor* inputState) {
|
||||
glGenVertexArrays(1, &mVertexArrayObject);
|
||||
glBindVertexArray(mVertexArrayObject);
|
||||
auto& attributesSetMask = GetAttributesSetMask();
|
||||
for (uint32_t location = 0; location < attributesSetMask.size(); ++location) {
|
||||
if (!attributesSetMask[location]) {
|
||||
continue;
|
||||
}
|
||||
auto attribute = GetAttribute(location);
|
||||
for (uint32_t location : IterateBitSet(GetAttributesSetMask())) {
|
||||
const auto& attribute = GetAttribute(location);
|
||||
glEnableVertexAttribArray(location);
|
||||
|
||||
attributesUsingInput[attribute.inputSlot][location] = true;
|
||||
|
||||
Reference in New Issue
Block a user