[GPU] Change texture load cbuffer to push constants

Simplify the code, eliminating the need for supporting requesting cbuffers
for anything other than guest draw command execution.
This commit is contained in:
Triang3l
2025-08-20 00:02:31 +03:00
parent 04d5c40d0d
commit 0b2ffa3148
134 changed files with 25280 additions and 25673 deletions

View File

@@ -14,7 +14,7 @@ array_buffer_wo_declare_xe(uint4_xe, xe_texture_load_dest, set=0, binding=0, u0,
array_buffer_declare_xe(uint4_xe, xe_texture_load_source, set=1, binding=0, t0,
space0)
entry_bindings_begin_compute_xe
XE_TEXTURE_LOAD_CONSTANT_BUFFER_BINDING
XE_TEXTURE_LOAD_PUSH_CONST_BINDING
entry_binding_next_xe
array_buffer_wo_binding_xe(uint4_xe, xe_texture_load_dest, buffer(1))
entry_binding_next_xe
@@ -27,8 +27,7 @@ entry_inputs_end_code_begin_compute_xe
// externally provided
// `uint4 XE_TEXTURE_LOAD_DXT3A_AS_1_1_1_1_TO_16BPP(uint2 halfblocks)`
// conversion function.
XeTextureLoadInfo load_info = XeTextureLoadGetInfo(
pass_const_buffer_xe(xe_texture_load_constants));
XeTextureLoadInfo load_info = XeTextureLoadGetInfo(pass_push_consts_xe);
uint3_xe block_index = in_global_thread_id_xe << uint3_xe(2u, 0u, 0u);
dont_flatten_xe
if (any(greater_than_equal_xe(block_index.xy, load_info.size_blocks.xy))) {