Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
69 changes: 53 additions & 16 deletions spec/index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -15881,20 +15881,21 @@ The [=texel block memory cost=] of each of these formats is the same as its
<table class=data>
<thead class=stickyheader>
<tr>
<th>Format
<th>{{GPUTextureSampleType}}
<th><span class=vertical>{{GPUTextureUsage/RENDER_ATTACHMENT}}</span>
<th><span class=vertical>[=blendable=]</span>
<th><span class=vertical>multisampling</span>
<th><span class=vertical>resolve</span>
<th><span class=vertical>{{GPUStorageTextureAccess/"write-only"}} or {{GPUStorageTextureAccess/"read-only"}}<br>
{{GPUTextureUsage/STORAGE_BINDING}}</span>
<th><span class=vertical>{{GPUStorageTextureAccess/"read-write"}}<br>
{{GPUTextureUsage/STORAGE_BINDING}}</span>
<th>[=Texel block copy footprint=] (Bytes)
<th>[=Render target pixel byte cost=] (Bytes)
<th rowspan=2>Format
<th rowspan=2>{{GPUTextureSampleType}}
<th rowspan=2><span class=vertical>{{GPUTextureUsage/RENDER_ATTACHMENT}}</span>
<th rowspan=2><span class=vertical>[=blendable=]</span>
<th rowspan=2><span class=vertical>multisampling</span>
<th rowspan=2><span class=vertical>resolve</span>
<th colspan=3>{{GPUTextureUsage/STORAGE_BINDING}}
<th rowspan=2>[=Texel block copy footprint=] (Bytes)
<th rowspan=2>[=Render target pixel byte cost=] (Bytes)
<tr>
<th><span class=vertical>{{GPUStorageTextureAccess/"write-only"}}</span>
<th><span class=vertical>{{GPUStorageTextureAccess/"read-only"}}</span>
<th><span class=vertical>{{GPUStorageTextureAccess/"read-write"}}</span>
</thead>
<tr><th colspan=10>8 bits per component (1-byte [=render target component alignment=])
<tr><th colspan=11>8 bits per component (1-byte [=render target component alignment=])
<tr>
<td>{{GPUTextureFormat/r8unorm}}
<td>{{GPUTextureSampleType/"float"}},<br/>{{GPUTextureSampleType/"unfilterable-float"}}
Expand All @@ -15904,6 +15905,7 @@ The [=texel block memory cost=] of each of these formats is the same as its
<td>&checkmark;
<td>
<td>
<td>
<td colspan=2>1
<tr>
<td>{{GPUTextureFormat/r8snorm}}
Expand All @@ -15914,6 +15916,7 @@ The [=texel block memory cost=] of each of these formats is the same as its
<td>
<td><!-- Vulkan -->
<td><!-- Vulkan -->
<td><!-- Vulkan -->
<td>1
<td>&ndash; <!-- no render target -->
<tr>
Expand All @@ -15925,6 +15928,7 @@ The [=texel block memory cost=] of each of these formats is the same as its
<td><!-- Metal -->
<td>
<td>
<td>
<td colspan=2>1
<tr>
<td>{{GPUTextureFormat/r8sint}}
Expand All @@ -15935,6 +15939,7 @@ The [=texel block memory cost=] of each of these formats is the same as its
<td><!-- Metal -->
<td>
<td>
<td>
<td colspan=2>1
<tr>
<td>{{GPUTextureFormat/rg8unorm}}
Expand All @@ -15945,6 +15950,7 @@ The [=texel block memory cost=] of each of these formats is the same as its
<td>&checkmark;
<td><!-- Vulkan -->
<td><!-- Vulkan -->
<td><!-- Vulkan -->
<td colspan=2>2
<tr>
<td>{{GPUTextureFormat/rg8snorm}}
Expand All @@ -15955,6 +15961,7 @@ The [=texel block memory cost=] of each of these formats is the same as its
<td>
<td><!-- Vulkan -->
<td><!-- Vulkan -->
<td><!-- Vulkan -->
<td>2
<td>&ndash; <!-- no render target -->
<tr>
Expand All @@ -15966,6 +15973,7 @@ The [=texel block memory cost=] of each of these formats is the same as its
<td><!-- Metal -->
<td>
<td>
<td>
<td colspan=2>2
<tr>
<td>{{GPUTextureFormat/rg8sint}}
Expand All @@ -15976,6 +15984,7 @@ The [=texel block memory cost=] of each of these formats is the same as its
<td><!-- Metal -->
<td>
<td>
<td>
<td colspan=2>2
<tr>
<td>{{GPUTextureFormat/rgba8unorm}}
Expand All @@ -15985,6 +15994,7 @@ The [=texel block memory cost=] of each of these formats is the same as its
<td>&checkmark;
<td>&checkmark;
<td>&checkmark;
<td>&checkmark;
<td>
<td>4
<td>8
Expand All @@ -15997,6 +16007,7 @@ The [=texel block memory cost=] of each of these formats is the same as its
<td>&checkmark;
<td>
<td>
<td>
<td>4
<td>8
<tr>
Expand All @@ -16007,6 +16018,7 @@ The [=texel block memory cost=] of each of these formats is the same as its
<td><!-- no multisampling without RENDER_ATTACHMENT (gpuweb/gpuweb#2465) -->
<td>
<td>&checkmark;
<td>&checkmark;
<td>
<td>4
<td>&ndash; <!-- no render target --> <!-- If we add render target support for this in the future, rgba8snorm has to be a special case where the render target pixel byte cost = 8 -->
Expand All @@ -16018,6 +16030,7 @@ The [=texel block memory cost=] of each of these formats is the same as its
<td>&checkmark;
<td><!-- Metal -->
<td>&checkmark;
<td>&checkmark;
<td>
<td colspan=2>4
<tr>
Expand All @@ -16028,6 +16041,7 @@ The [=texel block memory cost=] of each of these formats is the same as its
<td>&checkmark;
<td><!-- Metal -->
<td>&checkmark;
<td>&checkmark;
<td>
<td colspan=2>4
<tr>
Expand All @@ -16039,6 +16053,7 @@ The [=texel block memory cost=] of each of these formats is the same as its
<td>&checkmark;
<td>If {{GPUFeatureName/"bgra8unorm-storage"}} is enabled
<td>
<td>
<td>4
<td>8
<tr>
Expand All @@ -16050,9 +16065,10 @@ The [=texel block memory cost=] of each of these formats is the same as its
<td>&checkmark;
<td>
<td>
<td>
<td>4
<td>8
<tr><th colspan=10>16 bits per component (2-byte [=render target component alignment=])
<tr><th colspan=11>16 bits per component (2-byte [=render target component alignment=])
<tr>
<td>{{GPUTextureFormat/r16uint}}
<td>{{GPUTextureSampleType/"uint"}}
Expand All @@ -16062,6 +16078,7 @@ The [=texel block memory cost=] of each of these formats is the same as its
<td><!-- Metal -->
<td>
<td>
<td>
<td colspan=2>2
<tr>
<td>{{GPUTextureFormat/r16sint}}
Expand All @@ -16072,6 +16089,7 @@ The [=texel block memory cost=] of each of these formats is the same as its
<td><!-- Metal -->
<td>
<td>
<td>
<td colspan=2>2
<tr>
<td>{{GPUTextureFormat/r16float}}
Expand All @@ -16082,6 +16100,7 @@ The [=texel block memory cost=] of each of these formats is the same as its
<td>&checkmark;
<td>
<td>
<td>
<td colspan=2>2
<tr>
<td>{{GPUTextureFormat/rg16uint}}
Expand All @@ -16092,6 +16111,7 @@ The [=texel block memory cost=] of each of these formats is the same as its
<td><!-- Metal -->
<td>
<td>
<td>
<td colspan=2>4
<tr>
<td>{{GPUTextureFormat/rg16sint}}
Expand All @@ -16102,6 +16122,7 @@ The [=texel block memory cost=] of each of these formats is the same as its
<td><!-- Metal -->
<td>
<td>
<td>
<td colspan=2>4
<tr>
<td>{{GPUTextureFormat/rg16float}}
Expand All @@ -16112,6 +16133,7 @@ The [=texel block memory cost=] of each of these formats is the same as its
<td>&checkmark;
<td><!-- Vulkan -->
<td><!-- Vulkan -->
<td><!-- Vulkan -->
<td colspan=2>4
<tr>
<td>{{GPUTextureFormat/rgba16uint}}
Expand All @@ -16121,6 +16143,7 @@ The [=texel block memory cost=] of each of these formats is the same as its
<td>&checkmark;
<td><!-- Metal -->
<td>&checkmark;
<td>&checkmark;
<td>
<td colspan=2>8
<tr>
Expand All @@ -16131,6 +16154,7 @@ The [=texel block memory cost=] of each of these formats is the same as its
<td>&checkmark;
<td><!-- Metal -->
<td>&checkmark;
<td>&checkmark;
<td>
<td colspan=2>8
<tr>
Expand All @@ -16141,9 +16165,10 @@ The [=texel block memory cost=] of each of these formats is the same as its
<td>&checkmark;
<td>&checkmark;
<td>&checkmark;
<td>&checkmark;
<td>
<td colspan=2>8
<tr><th colspan=10>32 bits per component (4-byte [=render target component alignment=])
<tr><th colspan=11>32 bits per component (4-byte [=render target component alignment=])
<tr>
<td>{{GPUTextureFormat/r32uint}}
<td>{{GPUTextureSampleType/"uint"}}
Expand All @@ -16153,6 +16178,7 @@ The [=texel block memory cost=] of each of these formats is the same as its
<td>
<td>&checkmark;
<td>&checkmark;
<td>&checkmark;
<td colspan=2>4
<tr>
<td>{{GPUTextureFormat/r32sint}}
Expand All @@ -16163,6 +16189,7 @@ The [=texel block memory cost=] of each of these formats is the same as its
<td>
<td>&checkmark;
<td>&checkmark;
<td>&checkmark;
<td colspan=2>4
<tr>
<td>{{GPUTextureFormat/r32float}}
Expand All @@ -16175,6 +16202,7 @@ The [=texel block memory cost=] of each of these formats is the same as its
<td><!-- Metal -->
<td>&checkmark;
<td>&checkmark;
<td>&checkmark;
<td colspan=2>4
<tr>
<td>{{GPUTextureFormat/rg32uint}}
Expand All @@ -16184,6 +16212,7 @@ The [=texel block memory cost=] of each of these formats is the same as its
<td><!-- Metal -->
<td>
<td>&checkmark;
<td>&checkmark;
<td>
<td colspan=2>8
<tr>
Expand All @@ -16194,6 +16223,7 @@ The [=texel block memory cost=] of each of these formats is the same as its
<td><!-- Metal -->
<td>
<td>&checkmark;
<td>&checkmark;
<td>
<td colspan=2>8
<tr>
Expand All @@ -16206,6 +16236,7 @@ The [=texel block memory cost=] of each of these formats is the same as its
<td><!-- Metal -->
<td>
<td>&checkmark;
<td>&checkmark;
<td>
<td colspan=2>8
<tr>
Expand All @@ -16216,6 +16247,7 @@ The [=texel block memory cost=] of each of these formats is the same as its
<td><!-- Metal -->
<td>
<td>&checkmark;
<td>&checkmark;
<td>
<td colspan=2>16
<tr>
Expand All @@ -16226,6 +16258,7 @@ The [=texel block memory cost=] of each of these formats is the same as its
<td><!-- Metal -->
<td>
<td>&checkmark;
<td>&checkmark;
<td>
<td colspan=2>16
<tr>
Expand All @@ -16238,9 +16271,10 @@ The [=texel block memory cost=] of each of these formats is the same as its
<td><!-- Metal -->
<td>
<td>&checkmark;
<td>&checkmark;
<td>
<td colspan=2>16
<tr><th colspan=10>mixed component width, 32 bits per texel (4-byte [=render target component alignment=])
<tr><th colspan=11>mixed component width, 32 bits per texel (4-byte [=render target component alignment=])
<tr>
<td>{{GPUTextureFormat/rgb10a2uint}}
<td>{{GPUTextureSampleType/"uint"}}
Expand All @@ -16250,6 +16284,7 @@ The [=texel block memory cost=] of each of these formats is the same as its
<td>
<td>
<td>
<td>
<td>4
<td>8
<tr>
Expand All @@ -16261,6 +16296,7 @@ The [=texel block memory cost=] of each of these formats is the same as its
<td>&checkmark;
<td>
<td>
<td>
<td>4
<td>8
<tr>
Expand All @@ -16269,6 +16305,7 @@ The [=texel block memory cost=] of each of these formats is the same as its
<td colspan=4>If {{GPUFeatureName/"rg11b10ufloat-renderable"}} is enabled
<td><!-- Vulkan -->
<td><!-- Vulkan -->
<td><!-- Vulkan -->
<td>4
<td>8
</table>
Expand Down