[XeSL] xesl_write*Store > xesl_*Store

This commit is contained in:
Triang3l
2022-06-24 23:37:29 +03:00
parent 7a4732e14f
commit f4a634c617
29 changed files with 89 additions and 95 deletions

View File

@@ -55,25 +55,25 @@ xesl_entry_inputs_end_code_begin_compute
// Sort the color indices so they can be used as weights for the second
// endpoint.
uint bgr_weights = XeDXTHighColorWeights(block.w);
xesl_writeTypedStorageBufferStore(
xesl_typedStorageBufferStore(
xe_texture_load_dest, block_offset_host,
XeDXTOpaqueRowToRGB8(bgr_end_8in10, bgr_weights) +
((block.xxxx >> xesl_uint4(0u, 4u, 8u, 12u)) & 0xFu) * 0x11000000u);
xesl_dont_flatten if (texel_index_host.y + 1u < load_info.height_texels) {
xesl_writeTypedStorageBufferStore(
xesl_typedStorageBufferStore(
xe_texture_load_dest, block_offset_host + elements_pitch_host,
XeDXTOpaqueRowToRGB8(bgr_end_8in10, bgr_weights >> 8u) +
((block.xxxx >> xesl_uint4(16u, 20u, 24u, 28u)) & 0xFu) *
0x11000000u);
xesl_dont_flatten if (texel_index_host.y + 2u < load_info.height_texels) {
xesl_writeTypedStorageBufferStore(
xesl_typedStorageBufferStore(
xe_texture_load_dest, block_offset_host + 2u * elements_pitch_host,
XeDXTOpaqueRowToRGB8(bgr_end_8in10, bgr_weights >> 16u) +
((block.yyyy >> xesl_uint4(0u, 4u, 8u, 12u)) & 0xFu) *
0x11000000u);
xesl_dont_flatten
if (texel_index_host.y + 3u < load_info.height_texels) {
xesl_writeTypedStorageBufferStore(
xesl_typedStorageBufferStore(
xe_texture_load_dest,
block_offset_host + 3u * elements_pitch_host,
XeDXTOpaqueRowToRGB8(bgr_end_8in10, bgr_weights >> 24u) +