[docs] Expand OpImageType documentation
This Cl adds the arrayed, depth and sampled flags to the OpImageType examples. Change-Id: Ib634268bfdf91f25c6f65c218d7a19b1340dcd72 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/32321 Commit-Queue: dan sinclair <dsinclair@chromium.org> Reviewed-by: David Neto <dneto@google.com>
This commit is contained in:
parent
f7e152a3ab
commit
6526bd4f73
|
@ -114,32 +114,32 @@ decorated with `NonWritable` or each member of the struct can be decorated with
|
||||||
## Texture Types
|
## Texture Types
|
||||||
| WGSL | SPIR-V | MSL | HLSL |
|
| WGSL | SPIR-V | MSL | HLSL |
|
||||||
|------|--------|-----|------|
|
|------|--------|-----|------|
|
||||||
| texture_1d<type> | OpTypeImage | texture1d<type, access::sample> | Texture1D |
|
| texture_1d<type> | OpTypeImage 1D Sampled=1 | texture1d<type, access::sample> | Texture1D |
|
||||||
| texture_1d_array<type> | OpTypeImage | texture1d_array<type, access::sample> | Texture1DArray |
|
| texture_1d_array<type> | OpTypeImage 1D Arrayed=1 Sampled=1 | texture1d_array<type, access::sample> | Texture1DArray |
|
||||||
| texture_2d<type> | OpTypeImage | texture2d<type, access::sample> | Texture2D |
|
| texture_2d<type> | OpTypeImage 2D Sampled=1 | texture2d<type, access::sample> | Texture2D |
|
||||||
| texture_2d_array<type> | OpTypeImage | texture2d_array<type, access::sample> | Texture2DArray |
|
| texture_2d_array<type> | OpTypeImage 2D Arrayed=1 Sampled=1 | texture2d_array<type, access::sample> | Texture2DArray |
|
||||||
| texture_3d<type> | OpTypeImage | texture3d<type, access::sample> | Texture3D |
|
| texture_3d<type> | OpTypeImage 3D Sampled=1 | texture3d<type, access::sample> | Texture3D |
|
||||||
| texture_cube<type> | OpTypeImage | texturecube<type, access::sample> | TextureCube |
|
| texture_cube<type> | OpTypeImage Cube Sampled=1 | texturecube<type, access::sample> | TextureCube |
|
||||||
| texture_cube_array<type> | OpTypeImage | texturecube_array<type, access::sample> | TextureCubeArray |
|
| texture_cube_array<type> | OpTypeImage Cube Arrayed=1 Sampled=1 | texturecube_array<type, access::sample> | TextureCubeArray |
|
||||||
| | | |
|
| | | |
|
||||||
| texture_multisampled_2d<type> | OpTypeImage | texture2d_ms<type, access::sample> | Texture2D |
|
| texture_multisampled_2d<type> | OpTypeImage 2D MS=1 Sampled=1 | texture2d_ms<type, access::sample> | Texture2D |
|
||||||
| | | |
|
| | | |
|
||||||
| texture_depth_2d | OpTypeImage | depth2d<float, access::sample>| Texture2D |
|
| texture_depth_2d | OpTypeImage 2D Depth=1 Sampled=1 | depth2d<float, access::sample>| Texture2D |
|
||||||
| texture_depth_2d_array | OpTypeImage | depth2d_array<float, access::sample> | Texture2DArray |
|
| texture_depth_2d_array | OpTypeImage 2D Depth=1 Arrayed=1 Sampled=1 | depth2d_array<float, access::sample> | Texture2DArray |
|
||||||
| texture_depth_cube | OpTypeImage | depthcube<float, access::sample> | TextureCube |
|
| texture_depth_cube | OpTypeImage Cube Depth=1 Sampled=1 | depthcube<float, access::sample> | TextureCube |
|
||||||
| texture_depth_cube_array | OpTypeImage | depthcube_array<float, access::sample> | TextureCubeArray |
|
| texture_depth_cube_array | OpTypeImage Cube Depth=1 Arrayed=1 Sampled=1 | depthcube_array<float, access::sample> | TextureCubeArray |
|
||||||
| | | |
|
| | | |
|
||||||
| texture_storage_ro_1d<image_storage_type> | OpTypeImage | texture1d<type, access::read> | RWTexture1D |
|
| texture_storage_ro_1d<image_storage_type> | OpTypeImage 1D Sampled=2| texture1d<type, access::read> | RWTexture1D |
|
||||||
| texture_storage_ro_1d_array<image_storage_type> | OpTypeImage | texture1d_array<type, access::read> | RWTexture1DArray |
|
| texture_storage_ro_1d_array<image_storage_type> | OpTypeImage 1D Arrayed=1 Sampled=2 | texture1d_array<type, access::read> | RWTexture1DArray |
|
||||||
| texture_storage_ro_2d<image_storage_type> | OpTypeImage | texture2d<type, access::read> | RWTexture2D |
|
| texture_storage_ro_2d<image_storage_type> | OpTypeImage 2D Sampled=2 | texture2d<type, access::read> | RWTexture2D |
|
||||||
| texture_storage_ro_2d_array<image_storage_type> | OpTypeImage | texture2d_array<type, access::read> | RWTexture2DArray |
|
| texture_storage_ro_2d_array<image_storage_type> | OpTypeImage 2D Arrayed=1 Sampled=2 | texture2d_array<type, access::read> | RWTexture2DArray |
|
||||||
| texture_storage_ro_3d<image_storage_type> | OpTypeImage | texture3d<type, access::read> | RWTexture3D |
|
| texture_storage_ro_3d<image_storage_type> | OpTypeImage 3D Sampled=2 | texture3d<type, access::read> | RWTexture3D |
|
||||||
| | | |
|
| | | |
|
||||||
| texture_storage_wo_1d<image_storage_type> | OpTypeImage | texture1d<type, access::write> | RWTexture1D |
|
| texture_storage_wo_1d<image_storage_type> | OpTypeImage 1D Sampled=2 | texture1d<type, access::write> | RWTexture1D |
|
||||||
| texture_storage_wo_1d_array<image_storage_type> | OpTypeImage | texture1d_array<type, access::write> | RWTexture1DArray |
|
| texture_storage_wo_1d_array<image_storage_type> | OpTypeImage 1D Arrayed=1 Sampled=2 | texture1d_array<type, access::write> | RWTexture1DArray |
|
||||||
| texture_storage_wo_2d<image_storage_type> | OpTypeImage | texture2d<type, access::write> | RWTexture2D |
|
| texture_storage_wo_2d<image_storage_type> | OpTypeImage 2D Sampled=1 | texture2d<type, access::write> | RWTexture2D |
|
||||||
| texture_storage_wo_2d_array<image_storage_type> | OpTypeImage | texture2d_array<type, access::write> | RWTexture2DArray |
|
| texture_storage_wo_2d_array<image_storage_type> | OpTypeImage 2D Arrayed=1 Sampled=2 | texture2d_array<type, access::write> | RWTexture2DArray |
|
||||||
| texture_storage_wo_3d<image_storage_type> | OpTypeImage | texture3d<type, access::write> | RWTexture3D|
|
| texture_storage_wo_3d<image_storage_type> | OpTypeImage 3D Sampled=2 | texture3d<type, access::write> | RWTexture3D|
|
||||||
|
|
||||||
# Short-circuting
|
# Short-circuting
|
||||||
## HLSL
|
## HLSL
|
||||||
|
|
Loading…
Reference in New Issue