mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-06-23 12:15:00 -07:00
hash_store -> content
This commit is contained in:
@@ -196,12 +196,12 @@ tex_texture_from_hash_topology(TEX_Scope *scope, U128 hash, TEX_Topology topolog
|
||||
}
|
||||
|
||||
internal R_Handle
|
||||
tex_texture_from_key_topology(TEX_Scope *scope, HS_Key key, TEX_Topology topology, U128 *hash_out)
|
||||
tex_texture_from_key_topology(TEX_Scope *scope, C_Key key, TEX_Topology topology, U128 *hash_out)
|
||||
{
|
||||
R_Handle handle = {0};
|
||||
for(U64 rewind_idx = 0; rewind_idx < HS_KEY_HASH_HISTORY_COUNT; rewind_idx += 1)
|
||||
for(U64 rewind_idx = 0; rewind_idx < C_KEY_HASH_HISTORY_COUNT; rewind_idx += 1)
|
||||
{
|
||||
U128 hash = hs_hash_from_key(key, rewind_idx);
|
||||
U128 hash = c_hash_from_key(key, rewind_idx);
|
||||
handle = tex_texture_from_hash_topology(scope, hash, topology);
|
||||
if(!r_handle_match(handle, r_handle_zero()))
|
||||
{
|
||||
@@ -266,7 +266,7 @@ tex_u2x_dequeue_req(U128 *hash_out, TEX_Topology *top_out)
|
||||
ASYNC_WORK_DEF(tex_xfer_work)
|
||||
{
|
||||
ProfBeginFunction();
|
||||
HS_Scope *scope = hs_scope_open();
|
||||
C_Scope *scope = c_scope_open();
|
||||
|
||||
//- rjf: decode
|
||||
U128 hash = {0};
|
||||
@@ -297,7 +297,7 @@ ASYNC_WORK_DEF(tex_xfer_work)
|
||||
String8 data = {0};
|
||||
if(got_task)
|
||||
{
|
||||
data = hs_data_from_hash(scope, hash);
|
||||
data = c_data_from_hash(scope, hash);
|
||||
}
|
||||
|
||||
//- rjf: data * topology -> texture
|
||||
@@ -322,7 +322,7 @@ ASYNC_WORK_DEF(tex_xfer_work)
|
||||
}
|
||||
}
|
||||
|
||||
hs_scope_close(scope);
|
||||
c_scope_close(scope);
|
||||
ProfEnd();
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user