GPU: Refactor API for Clearing Storage Buffers #105521
|
@ -834,13 +834,13 @@ void ShadowModule::end_sync()
|
|||
/* Clear tile-map clip buffer. */
|
||||
union {
|
||||
ShadowTileMapClip clip;
|
||||
uint4 i;
|
||||
int4 i;
|
||||
Jeroen-Bakker marked this conversation as resolved
|
||||
} u;
|
||||
u.clip.clip_near_stored = 0.0f;
|
||||
u.clip.clip_far_stored = 0.0f;
|
||||
u.clip.clip_near = 0xFF7FFFFFu ^ 0x7FFFFFFFu; /* floatBitsToOrderedInt(-FLT_MAX) */
|
||||
u.clip.clip_far = 0x7F7FFFFF; /* floatBitsToOrderedInt(FLT_MAX) */
|
||||
GPU_storagebuf_clear_uint(tilemap_pool.tilemaps_clip, u.i, 4);
|
||||
u.clip.clip_near = int(0xFF7FFFFFu ^ 0x7FFFFFFFu); /* floatBitsToOrderedInt(-FLT_MAX) */
|
||||
u.clip.clip_far = 0x7F7FFFFF; /* floatBitsToOrderedInt(FLT_MAX) */
|
||||
GPU_storagebuf_clear_int(tilemap_pool.tilemaps_clip, u.i, 4);
|
||||
|
||||
/* Clear cached page buffer. */
|
||||
int2 data = {-1, -1};
|
||||
|
|
Loading…
Reference in New Issue
Partially revert this change.