compute/live: name SamplerState where the debug check takes it, so a release build imports nothing unused
check_whole, the only user of SamplerState in compute/live.rs, is cfg(debug_assertions), so a release build under --cfg m2v_gpu warned 'unused import: SamplerState' (live.rs:94), an error under -D warnings (seen by the gbgap and ratemap3b lanes' release builds). The signature names the type by its path and the import goes. Verified: see the landing check job.
This commit is contained in:
1 parent
db50e74588
commit
bb21c14865
1 file changed
+2
-2
@@ -91,7 +91,7 @@ use crate::heap_sets;
|
||||
use crate::live_bind::{Reshape, ValueKinds};
|
||||
use crate::pipeline::{ComputePipelineState, WeakComputePipelineState};
|
||||
use crate::pvrtc::ResidentUnreadable;
|
||||
use crate::sampler::{ArgumentSamplers, SamplerState};
|
||||
use crate::sampler::ArgumentSamplers;
|
||||
use crate::shadow::ResidentShadows;
|
||||
use crate::work_counts::Counting;
|
||||
|
||||
@@ -331,7 +331,7 @@ impl LiveDispatch {
|
||||
&self,
|
||||
tables: &DispatchTables<'_>,
|
||||
maps: &SamplerMaps,
|
||||
samplers: Option<&[SamplerState]>,
|
||||
samplers: Option<&[crate::sampler::SamplerState]>,
|
||||
function_tables: &[VisibleFunctionTable],
|
||||
) {
|
||||
let mut whole = tables.bind_state(samplers.unwrap_or_default(), function_tables);
|
||||
|
||||
Reference in new issue
Block a user