mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-08 13:14:56 +00:00
[msl-writer] Emit texture types
This CL adds texture and sampler type emission to the MSL backend. Bug: tint:145 Change-Id: Iaab4d32b7fc6fedc1ffba16658f7800d6a502853 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/32320 Reviewed-by: David Neto <dneto@google.com> Commit-Queue: dan sinclair <dsinclair@chromium.org>
This commit is contained in:
committed by
Commit Bot service account
parent
dbcc1e0e80
commit
f7e152a3ab
@@ -108,38 +108,38 @@ decorated with `NonWritable` or each member of the struct can be decorated with
|
||||
## Sampler Types
|
||||
| WGSL | SPIR-V | MSL | HLSL |
|
||||
|------|--------|-----|------|
|
||||
| sampler | OpTypeSampler | | SamplerState |
|
||||
| sampler_comparison | OpTypeSampler | | SamplerComparisonState |
|
||||
| sampler | OpTypeSampler | sampler | SamplerState |
|
||||
| sampler_comparison | OpTypeSampler | sampler | SamplerComparisonState |
|
||||
|
||||
## Texture Types
|
||||
| WGSL | SPIR-V | MSL | HLSL |
|
||||
|------|--------|-----|------|
|
||||
| texture_1d | OpTypeImage | | Texture1D |
|
||||
| texture_1d_array | OpTypeImage | | Texture1DArray |
|
||||
| texture_2d | OpTypeImage | | Texture2D |
|
||||
| texture_2d_array | OpTypeImage | | Texture2DArray |
|
||||
| texture_3d | OpTypeImage | | Texture3D |
|
||||
| texture_cube | OpTypeImage | | TextureCube |
|
||||
| texture_cube_array | OpTypeImage | | TextureCubeArray |
|
||||
| texture_1d<type> | OpTypeImage | texture1d<type, access::sample> | Texture1D |
|
||||
| texture_1d_array<type> | OpTypeImage | texture1d_array<type, access::sample> | Texture1DArray |
|
||||
| texture_2d<type> | OpTypeImage | texture2d<type, access::sample> | Texture2D |
|
||||
| texture_2d_array<type> | OpTypeImage | texture2d_array<type, access::sample> | Texture2DArray |
|
||||
| texture_3d<type> | OpTypeImage | texture3d<type, access::sample> | Texture3D |
|
||||
| texture_cube<type> | OpTypeImage | texturecube<type, access::sample> | TextureCube |
|
||||
| texture_cube_array<type> | OpTypeImage | texturecube_array<type, access::sample> | TextureCubeArray |
|
||||
| | | |
|
||||
| texture_multisampled_2d<type> | OpTypeImage | | Texture2D |
|
||||
| texture_multisampled_2d<type> | OpTypeImage | texture2d_ms<type, access::sample> | Texture2D |
|
||||
| | | |
|
||||
| texture_depth_2d | OpTypeImage | | Texture2D |
|
||||
| texture_depth_2d_array | OpTypeImage | | Texture2DArray |
|
||||
| texture_depth_cube | OpTypeImage | | TextureCube |
|
||||
| texture_depth_cube_array | OpTypeImage | | TextureCubeArray |
|
||||
| texture_depth_2d | OpTypeImage | depth2d<float, access::sample>| Texture2D |
|
||||
| texture_depth_2d_array | OpTypeImage | depth2d_array<float, access::sample> | Texture2DArray |
|
||||
| texture_depth_cube | OpTypeImage | depthcube<float, access::sample> | TextureCube |
|
||||
| texture_depth_cube_array | OpTypeImage | depthcube_array<float, access::sample> | TextureCubeArray |
|
||||
| | | |
|
||||
| texture_storage_ro_1d<image_storage_type> | OpTypeImage | | RWTexture1D |
|
||||
| texture_storage_ro_1d_array<image_storage_type> | OpTypeImage | | RWTexture1DArray |
|
||||
| texture_storage_ro_2d<image_storage_type> | OpTypeImage | | RWTexture2D |
|
||||
| texture_storage_ro_2d_array<image_storage_type> | OpTypeImage | | RWTexture2DArray |
|
||||
| texture_storage_ro_3d<image_storage_type> | OpTypeImage | | RWTexture3D |
|
||||
| texture_storage_ro_1d<image_storage_type> | OpTypeImage | texture1d<type, access::read> | RWTexture1D |
|
||||
| texture_storage_ro_1d_array<image_storage_type> | OpTypeImage | texture1d_array<type, access::read> | RWTexture1DArray |
|
||||
| texture_storage_ro_2d<image_storage_type> | OpTypeImage | texture2d<type, access::read> | RWTexture2D |
|
||||
| texture_storage_ro_2d_array<image_storage_type> | OpTypeImage | texture2d_array<type, access::read> | RWTexture2DArray |
|
||||
| texture_storage_ro_3d<image_storage_type> | OpTypeImage | texture3d<type, access::read> | RWTexture3D |
|
||||
| | | |
|
||||
| texture_storage_wo_1d<image_storage_type> | OpTypeImage | | RWTexture1D |
|
||||
| texture_storage_wo_1d_array<image_storage_type> | OpTypeImage | | RWTexture1DArray |
|
||||
| texture_storage_wo_2d<image_storage_type> | OpTypeImage | | RWTexture2D |
|
||||
| texture_storage_wo_2d_array<image_storage_type> | OpTypeImage | | RWTexture2DArray |
|
||||
| texture_storage_wo_3d<image_storage_type> | OpTypeImage | | RWTexture3D|
|
||||
| texture_storage_wo_1d<image_storage_type> | OpTypeImage | texture1d<type, access::write> | RWTexture1D |
|
||||
| texture_storage_wo_1d_array<image_storage_type> | OpTypeImage | texture1d_array<type, access::write> | RWTexture1DArray |
|
||||
| texture_storage_wo_2d<image_storage_type> | OpTypeImage | texture2d<type, access::write> | RWTexture2D |
|
||||
| texture_storage_wo_2d_array<image_storage_type> | OpTypeImage | texture2d_array<type, access::write> | RWTexture2DArray |
|
||||
| texture_storage_wo_3d<image_storage_type> | OpTypeImage | texture3d<type, access::write> | RWTexture3D|
|
||||
|
||||
# Short-circuting
|
||||
## HLSL
|
||||
|
||||
Reference in New Issue
Block a user