Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

[Impeller] Support user defined structs in buffers, clean up compute tests #37084

Merged
merged 2 commits into from
Oct 27, 2022

Conversation

dnfield
Copy link
Contributor

@dnfield dnfield commented Oct 27, 2022

Updates the compute test to add a struct
Updates compiler reflector to support structs in buffers
Updates compute playground tests to not setup a renderer/attempt to setup a renderer.

@dnfield dnfield requested review from chinmaygarde and bdero October 27, 2022 17:47

TEST_P(ComputeTest, CanCreateComputePass) {
if (GetParam() == PlaygroundBackend::kOpenGLES) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you mean to remove these skips?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes - this now gets skipped in the macro for setting up a compute playground. We can add Vulkan and GLES when/if we start supporting them.

@chinmaygarde chinmaygarde changed the title Support user defined structs in buffers, clean up compute tests [Impeller] Support user defined structs in buffers, clean up compute tests Oct 27, 2022
Copy link
Member

@bdero bdero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yo dawg I heard you like structs.

});
current_byte_offset += stride * array_elements.value_or(1);
continue;
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this adds support for nested structs across all backend and stage types? Might be worth adding a small raster test that uses a nested struct (and make sure the GLES metadata doesn't need to be updated for this).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Proooobably?

I'll give it a try.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm going to punt on this fornow - I'm still trying to track down what to do about the buffer to texture issue and want to keep making progress on compute right now.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
autosubmit Merge PR when tree becomes green via auto submit App e: impeller
Projects
No open projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants