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

Update VariableRateShading.md (fix misleading sentence) #187

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

g0blue
Copy link
Contributor

@g0blue g0blue commented Jun 7, 2024

Tried to fix the following sentence to make it match the tables below (for some interpretations). It may actually be better to delete the entire sentence:

The mask consists of the of coverages from pixels from left-to-right, then top-to-bottom (column-major) order.

First, it's definitely row-major order, not column-major. Each row of fine pixels are contiguous in the sample mask, not each column.

Second, when evaluating an attribute with centroid evaluation, the definition states to use the "first covered sample". The "first" means the lowest-order bit that is set. I interpret that to mean that the "order" of the sample mask should be read as lowest-order to highest-order. Given the tables in this diagram, I would say the order is "right-to-left, then bottom-to-top (row-major)", hence this change.

Tried to fix the following sentence to make it match the tables below (for some interpretations).  It may actually be better to delete the entire sentence:

> The mask consists of the of coverages from pixels from left-to-right, then top-to-bottom (column-major) order.

First, it's definitely row-major order, not column-major. Each row of fine pixels are contiguous in the sample mask, not each column.

Second, when evaluating an attribute with centroid evaluation, the definition states to use the "first covered sample". The "first" means the lowest-order bit that is set.  I interpret that to mean that the "order" of the sample mask should be read as lowest-order to highest-order.  Given the tables in this diagram, I would say the order is "right-to-left, then bottom-to-top (row-major)", hence this change.
Copy link
Member

@jenatali jenatali left a comment

Choose a reason for hiding this comment

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

I was actually just looking at this and scratching my head this week. I believe this change is right and it makes me sad that this is the order.

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.

2 participants