Skip to content

dx12 fixes#83

Merged
koubaa merged 4 commits intomainfrom
fixes
Apr 8, 2026
Merged

dx12 fixes#83
koubaa merged 4 commits intomainfrom
fixes

Conversation

@koubaa
Copy link
Copy Markdown
Owner

@koubaa koubaa commented Apr 8, 2026

No description provided.

koubaa added 3 commits April 7, 2026 21:28
- Removed the `drop_buffer_barriers` function as it was redundant.
- Updated buffer barrier access patterns to use `D3D12_BARRIER_ACCESS_COMMON` instead of `D3D12_BARRIER_ACCESS_UNORDERED_ACCESS`.
- Simplified the UAV clear function to always create a R32_UINT UAV, ensuring compatibility regardless of buffer stride.
- Added explicit layout transition for storage textures during creation to prevent silent failures on some drivers.
- Enhanced compute submission barriers to ensure proper visibility of UAV writes to subsequent reads.
- Added debug assertions to ensure buffer size and view size are evenly divisible by element stride, preventing potential stride mismatches.
- Introduced a warning for write operations when data length is not a multiple of the element stride for storage buffers, improving error handling and debugging.
- Updated debug assertions in buffer creation and view functions to use `is_multiple_of` for clarity and consistency.
- Simplified command list casting in texture creation for better readability.
- Cleaned up formatting in UAV clear function to enhance code maintainability.
@koubaa koubaa changed the title Fixes dx12 fixes Apr 8, 2026
- Added support for MTLHazardTrackingMode::Tracked in both buffer and texture heap descriptors to enhance memory management and resource safety.
- Updated the create functions in HeapAllocator and TextureHeapAllocator to set the hazard tracking mode during heap creation.
@koubaa koubaa merged commit 8348f96 into main Apr 8, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant