Runtime: the floor's public docs name no private item, and pool_reach's dispatches take a named type
rustdoc -D warnings refused OPTIONAL_EXTENSIONS's and pipeline_robustness's links to the crate-private PIPELINE_ROBUSTNESS, and clippy under --cfg m2v_gpu and --cfg m2v_cpu_icd refused pool_reach's dispatch table type as too complex (job m3-max-75057). The links go; the table's thread reaches are a type of their own. Verified: fmt; clippy and rustdoc rerun in the next gate job.
This commit is contained in:
1 parent
42d3996845
commit
78149d56ef
2 files changed
+8
-5
No files matched your search
@@ -61,7 +61,7 @@ pub const TIME_DOMAINS: [vk::TimeDomainKHR; 2] =
|
||||
/// report is read once, at its first loss ([`DeviceLoss::fault`](crate::DeviceLoss::fault)),
|
||||
/// `VK_EXT_pipeline_robustness`, with its `pipelineRobustness` feature where the device reports it,
|
||||
/// through which a kernel's pipeline contains its buffer arguments' storage buffers by robust
|
||||
/// buffer access 2 ([`PIPELINE_ROBUSTNESS`]), and `VK_KHR_maintenance8` ([`MAINTENANCE8`]), for the
|
||||
/// buffer access 2, and `VK_KHR_maintenance8` ([`MAINTENANCE8`]), for the
|
||||
/// optional feature of its own.
|
||||
pub const OPTIONAL_EXTENSIONS: &[&CStr] = &[
|
||||
ash::khr::shader_maximal_reconvergence::NAME,
|
||||
@@ -427,7 +427,7 @@ pub struct Features {
|
||||
/// read and enabled only where the device lists it, and then only `maintenance8`.
|
||||
pub maintenance8: Maintenance8Features,
|
||||
/// `VkPhysicalDevicePipelineRobustnessFeaturesEXT`, of `VK_EXT_pipeline_robustness`: read and
|
||||
/// enabled only where the device lists it ([`OPTIONAL_EXTENSIONS`], [`PIPELINE_ROBUSTNESS`]).
|
||||
/// enabled only where the device lists it ([`OPTIONAL_EXTENSIONS`]).
|
||||
pub pipeline_robustness: vk::PhysicalDevicePipelineRobustnessFeaturesEXT<'static>,
|
||||
}
|
||||
|
||||
|
||||
@@ -41,6 +41,10 @@ mod on_device {
|
||||
/// A thread's mark.
|
||||
const MARK: u32 = 0xa5a5_0000;
|
||||
|
||||
/// A dispatch's threads: each one's word index and the target word it reaches (None outside
|
||||
/// the target).
|
||||
type Reaches = &'static [(i32, Option<usize>)];
|
||||
|
||||
fn write(buffer: &Buffer, word: impl Fn(usize) -> u32) {
|
||||
let contents = buffer.contents().expect("a Shared buffer").cast::<u32>();
|
||||
for index in 0..WORDS {
|
||||
@@ -66,9 +70,8 @@ mod on_device {
|
||||
let descriptor = ComputePipelineDescriptor::new(StageSource::Function(
|
||||
FunctionDescriptor::new(function),
|
||||
));
|
||||
// Each dispatch: the target's bind offset, then each thread's word index and the target
|
||||
// word it reaches (None outside the target).
|
||||
let dispatches: [(u64, &[(i32, Option<usize>)]); 2] = [
|
||||
// Each dispatch: the target's bind offset, then its threads' reaches.
|
||||
let dispatches: [(u64, Reaches); 2] = [
|
||||
(
|
||||
0,
|
||||
&[
|
||||
|
||||
Reference in new issue
Block a user