Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JBR-7305 Vulkan: Implement FILL_SPANS primitive for flat color rendering #406

Merged
merged 1 commit into from
Jun 15, 2024

Conversation

avu
Copy link
Collaborator

@avu avu commented Jun 13, 2024

Implemented flat color shape rendering

@avu avu requested a review from YaaZ June 13, 2024 19:04
@avu avu force-pushed the avu/jbr21-JBR-7305-FILL_SPANS branch from aa67b3f to d56b480 Compare June 14, 2024 13:16
@avu avu force-pushed the avu/jbr21-JBR-7305-FILL_SPANS branch from d56b480 to 2e6116f Compare June 14, 2024 13:17
Copy link
Member

@YaaZ YaaZ left a comment

Choose a reason for hiding this comment

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

The only major difference between all plain-color rendering commands is the calculation of primitive coordinates, in the future we could refactor the common code, so that actual rendering function would look like:

  1. Vertex* verts = writeVertices(numVertices);
  2. Write coordinates into verts
  3. flushVertices();

@avu avu merged commit f187ea1 into jbr21 Jun 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants