Merge local/gpucost
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
commit
c7cf0c6aa9
9 files changed
+1492
-53
No files matched your search
@@ -742,6 +742,9 @@ extern "system" fn barrier(this: This, count: u32, barriers: *const Barrier) ->
|
||||
if let Some(list) = host_list(this)
|
||||
&& !barriers.is_null()
|
||||
{
|
||||
if count > 0 {
|
||||
with_state(this, |_, state| state.synced());
|
||||
}
|
||||
// SAFETY: the title passes `count` barriers.
|
||||
let barriers = unsafe { std::slice::from_raw_parts(barriers, count as usize) };
|
||||
let mut host: Vec<Barrier> = barriers
|
||||
@@ -1396,7 +1399,14 @@ extern "system" fn set_pipeline(this: This, pipeline: This) {
|
||||
/// bottom of the pipe `(flags, control, address, size)`. Host lists order
|
||||
/// their own work and every submission is waited for, so there is nothing
|
||||
/// to do.
|
||||
extern "system" fn sync(_: This, _flags: u32, _control: u32, _address: u64, _size: u64) {}
|
||||
/// (Arguments may be what earlier shaders wrote from here on:
|
||||
/// `State::synced`.)
|
||||
extern "system" fn sync(this: This, _flags: u32, _control: u32, _address: u64, _size: u64) {
|
||||
#[cfg(windows)]
|
||||
with_state(this, |_, state| state.synced());
|
||||
#[cfg(not(windows))]
|
||||
let _ = this;
|
||||
}
|
||||
|
||||
/// Reset with console flags `(allocator, pipeline, flags)`; the flags only
|
||||
/// tune the console's command memory.
|
||||
@@ -1943,6 +1953,7 @@ extern "system" fn barrier_groups(this: This, count: u32, _groups: *const u8) {
|
||||
&& let Some(list) = host_list(this)
|
||||
{
|
||||
use windows::Win32::Graphics::Direct3D12::D3D12_RESOURCE_BARRIER;
|
||||
with_state(this, |_, state| state.synced());
|
||||
// SAFETY: the same layout; no resource named.
|
||||
let barrier = unsafe { std::mem::transmute::<Barrier, D3D12_RESOURCE_BARRIER>(UAV_BARRIER) };
|
||||
// SAFETY: an open list.
|
||||
|
||||
Reference in new issue
Block a user