| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
This patch adds several definitions that are required in the validation rules of copy commands with textures. - the internal slots of a GPUTexture - texel block - texel block size - texel block width - texel block height - the physical size of a texture subresource
There was a problem hiding this comment.
The definitions look great, I have some comments about nomenclature.
Sorry, something went wrong.
| A {{GPUTextureCopyView}} is a view of a sub-region of a [=texture=] [=subresource=] with the initial offset {{GPUOrigin3D} in | ||
| texels, used when copying data between two [=texture=]s, from a [=buffer=] to a [=texture=] and from a [=texture=] to a [=buffer=]. | ||
|
|
||
| - For {{GPUTextureDimension/2d}} textures, data is copied between one [=image=] and one [=array layer=]. |
There was a problem hiding this comment.
this is unclear. One "image" is an array layer here
Sorry, something went wrong.
There was a problem hiding this comment.
I've made some changes here. PTAL, thanks!
Sorry, something went wrong.
| are considered to have {{GPUTextureUsage/OUTPUT_ATTACHMENT}} | ||
| for the [=usage scope=] of this render pass. | ||
|
|
||
| The <dfn dfn>physical size</dfn> of a {{GPUTexture}} [=subresource=] is the dimension of the {{GPUTexture}} |
There was a problem hiding this comment.
In a way I think we should define what a texel block is, with a definition that explains that regular format have a texel block size of 1. Then we can define pixel-based formats (1x1 blocks), and block-based formats (other block sizes). The discussion of compressed formats would only be in examples.
Then a lot of the discussion can only talk about block sizes in general, and have notes for what happens for pixel-based formats (i.e. no extra padding).
Basically the spec would be written as if all formats are block-based, but would explain what happens in the usual case when the block size is 1x1.
Sorry, something went wrong.
There was a problem hiding this comment.
The definition of "texel block" is in the Chapter "Texture Formats", which I think is a better place for it. What do you think?
Sorry, something went wrong.
There was a problem hiding this comment.
It's probably okay if the definition of texel block is in Texture Formats but we reference it from here. The important comment here, though, is about rewording everything so that there's no "pixel-based" vs "block-based" format distinction. It allows us to write a lot of spec text without mentioning the difference at all, which simplifies it and makes it more readable.
Sorry, something went wrong.
|
The error message of the build failure is not related to this patch ("bikeshed requires Python '>=3.7' but the running Python is 2.7.15"). PTAL, thanks! |
Sorry, something went wrong.
| - For block-based compressed {{GPUTextureFormat}}s, the [=texel block width=] is the number of texels in each row of one [=texel block=], | ||
| and the [=texel block height=] is the number of texel rows in one [=texel block=]. | ||
|
|
||
| The <dfn dfn>texel block size</dfn> of a {{GPUTextureFormat}} is the number of bytes to store one [=texel block=]. |
There was a problem hiding this comment.
nit: texel block byte size, otherwise it sounds like (width, height)
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM, I don't want to block this further and would be happy to make edits afterwards.
Sorry, something went wrong.
There was a problem hiding this comment.
Agreed, we can follow-up, no need to block further.
Sorry, something went wrong.
| `etc2-rgba8unorm`. | ||
|
|
||
| The <dfn dfn>texel block</dfn> is a single addressable element of the textures in pixel-based {{GPUTextureFormat}}s, | ||
| and a single compressed block of the textures in block-based compressed {{GPUTextureFormat}}s. |
There was a problem hiding this comment.
"compressed block of textures"?
Sorry, something went wrong.
| should follow the convention here, with the texture name as a prefix. e.g. | ||
| `etc2-rgba8unorm`. | ||
|
|
||
| The <dfn dfn>texel block</dfn> is a single addressable element of the textures in pixel-based {{GPUTextureFormat}}s, |
There was a problem hiding this comment.
"texel", "element", "pixel" - are all referring to the same thing...
Sorry, something went wrong.
There was a problem hiding this comment.
Editing nits
Sorry, something went wrong.
| for the [=usage scope=] of this render pass. | ||
|
|
||
| The <dfn dfn>physical size</dfn> of a {{GPUTexture}} [=subresource=] is the dimension of the {{GPUTexture}} | ||
| [=subresource=] in texels that includes the possible extra paddings to form complete [=texel blocks=] in the |
There was a problem hiding this comment.
| [=subresource=] in texels that includes the possible extra paddings to form complete [=texel blocks=] in the | |
| [=subresource=] in texels that may include padding to form complete [=texel blocks=] in the |
Sorry, something went wrong.
| [=subresource=]. | ||
|
|
||
| - For pixel-based {{GPUTextureFormat}}s, the [=physical size=] is always equal to the size of the [=subresource=] | ||
| used in the sampling hardwares. |
There was a problem hiding this comment.
| used in the sampling hardwares. | |
| used in sampling hardware. |
Sorry, something went wrong.
| used in the sampling hardwares. | ||
| - {{GPUTexture}}s in block-based compressed {{GPUTextureFormat}}s always have a [=mipmap level=] 0 whose {{GPUTexture/[[textureSize]]}} | ||
| is a multiple of the [=texel block size=], but the lower mipmap levels might not be the multiple of the [=texel block size=] and can | ||
| have paddings. |
There was a problem hiding this comment.
| have paddings. | |
| have padding. |
Sorry, something went wrong.
| should follow the convention here, with the texture name as a prefix. e.g. | ||
| `etc2-rgba8unorm`. | ||
|
|
||
| The <dfn dfn>texel block</dfn> is a single addressable element of the textures in pixel-based {{GPUTextureFormat}}s, |
There was a problem hiding this comment.
| The <dfn dfn>texel block</dfn> is a single addressable element of the textures in pixel-based {{GPUTextureFormat}}s, | |
| The <dfn dfn>texel block</dfn> is a single addressable element of textures with pixel-based {{GPUTextureFormat}}s, |
Sorry, something went wrong.
| `etc2-rgba8unorm`. | ||
|
|
||
| The <dfn dfn>texel block</dfn> is a single addressable element of the textures in pixel-based {{GPUTextureFormat}}s, | ||
| and a single compressed block of the textures in block-based compressed {{GPUTextureFormat}}s. |
There was a problem hiding this comment.
| and a single compressed block of the textures in block-based compressed {{GPUTextureFormat}}s. | |
| and a single compressed block of textures with block-based compressed {{GPUTextureFormat}}s. |
Sorry, something went wrong.
|
editors meeting resolution: we'll merge this and do revisions in follow-up. |
Sorry, something went wrong.
|
Pushed a merge so we can get this landed. |
Sorry, something went wrong.
* Define multiple concepts about copy commands with textures This patch adds several definitions that are required in the validation rules of copy commands with textures. - the internal slots of a GPUTexture - texel block - texel block size - texel block width - texel block height - the physical size of a texture subresource * Address reviewer's feedbacks * Format the example in the "physical size" section * Address more comments from reviewers
* Define multiple concepts about copy commands with textures This patch adds several definitions that are required in the validation rules of copy commands with textures. - the internal slots of a GPUTexture - texel block - texel block size - texel block width - texel block height - the physical size of a texture subresource * Address reviewer's feedbacks * Format the example in the "physical size" section * Address more comments from reviewers
…#623) When we create a view for a particular view dimension type from a texture, the texture's dimension type should be compatible with the view's dimension type.
| Back | FazBrowse Home | New Git URL |
This patch adds several definitions that are required in the
validation rules of copy commands with textures.
This patch also adds a sub-title for GPUImageBitmapCopyView to
keep it in the same style as GPUBufferCopyView.
💥 Error: 500 Internal Server Error 💥
PR Preview failed to build. (Last tried on Mar 23, 2020, 9:25 PM UTC).
MorePR Preview relies on a number of web services to run. There seems to be an issue with the following one:
🚨 HTML Diff Service - The HTML Diff Service is used to create HTML diffs of the spec changes suggested in a pull request.
🔗 Related URL
If you don't have enough information above to solve the error by yourself (or to understand to which web service the error is related to, if any), please file an issue.