Runtime: floor::Capabilities' Debug is written out; Features is not Debug
What: b30d81ad8b derived Debug on floor::Capabilities and floor::Features. That does not
compile: the workspace takes ash with default features off and without its `debug` feature,
so vk::PhysicalDeviceFeatures, the Vulkan 1.1-1.3 feature structures and
vk::PhysicalDeviceMemoryProperties have no Debug (potluck job m3-max-70430: clippy exit 101,
22 errors in metal2vulkan-runtime). Features gets its old derives back, and Capabilities gets a
Debug of its own that prints the answers its forms take (float16, storage reads without a
format, the 64-bit atomics and floats, maximal reconvergence, subgroup-uniform control flow,
the texel offset operand, attachment reads, the feedback loop), the extensions, the queue
family and the indirect-command limits, and leaves out the feature structures and the memory
properties (finish_non_exhaustive). The signature table is re-blessed.
Why: one line of a device's query answers in a consumer's log, without turning on ash's debug
feature for a published crate.
Verified: the signature check passes after the bless (source only); the build is the check job
dispatched with this commit.
This commit is contained in:
1 parent
b30d81ad8b
commit
c01b2e02dc
2 files changed
+33
-5
No files matched your search
@@ -324,7 +324,7 @@ pub(crate) const MEMORY_FLAG_NAMES: [(vk::MemoryPropertyFlags, &str); 4] = [
|
||||
|
||||
/// The feature structures of Vulkan 1.3 that the floor reads and device creation enables, each
|
||||
/// without its `p_next` link.
|
||||
#[derive(Clone, Copy, Debug, Default)]
|
||||
#[derive(Clone, Copy, Default)]
|
||||
pub struct Features {
|
||||
/// `VkPhysicalDeviceFeatures`.
|
||||
pub core: vk::PhysicalDeviceFeatures,
|
||||
@@ -989,8 +989,9 @@ impl std::error::Error for BelowFloor {}
|
||||
///
|
||||
/// Metal's counterparts are per-family capabilities (`supportsFamily`), and for storage reads
|
||||
/// `readWriteTextureSupport`; here each is one Vulkan feature. The SIMD groups' other answers
|
||||
/// (subgroup sizes, stages and operations) are properties the translator reads itself.
|
||||
#[derive(Debug)]
|
||||
/// (subgroup sizes, stages and operations) are properties the translator reads itself. Its
|
||||
/// `Debug` prints the answers, the extensions and the queue family, and leaves out the feature
|
||||
/// structures and the memory properties.
|
||||
pub struct Capabilities {
|
||||
/// `shaderFloat16`: `half` arithmetic in 16 bits.
|
||||
pub float16: bool,
|
||||
@@ -1045,6 +1046,32 @@ pub struct Capabilities {
|
||||
pub indirect_commands: Option<IndirectCommandLimits>,
|
||||
}
|
||||
|
||||
impl std::fmt::Debug for Capabilities {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
f.debug_struct("Capabilities")
|
||||
.field("float16", &self.float16)
|
||||
.field(
|
||||
"storage_read_without_format",
|
||||
&self.storage_read_without_format,
|
||||
)
|
||||
.field("buffer_int64_atomics", &self.buffer_int64_atomics)
|
||||
.field("shared_int64_atomics", &self.shared_int64_atomics)
|
||||
.field("float64", &self.float64)
|
||||
.field("maximal_reconvergence", &self.maximal_reconvergence)
|
||||
.field(
|
||||
"subgroup_uniform_control_flow",
|
||||
&self.subgroup_uniform_control_flow,
|
||||
)
|
||||
.field("texel_offset_operand", &self.texel_offset_operand)
|
||||
.field("attachment_reads", &self.attachment_reads)
|
||||
.field("feedback_loop", &self.feedback_loop)
|
||||
.field("extensions", &self.extensions)
|
||||
.field("queue_family", &self.queue_family)
|
||||
.field("indirect_commands", &self.indirect_commands)
|
||||
.finish_non_exhaustive()
|
||||
}
|
||||
}
|
||||
|
||||
/// The memory types the runtime allocates its buffers from, each the first memory type with its
|
||||
/// flags that a buffer of [`BUFFER_USAGE`] can use.
|
||||
///
|
||||
|
||||
@@ -6895,9 +6895,9 @@ struct metal2vulkan-runtime::Viewport #[derive(Clone, Copy, Debug, PartialEq)] p
|
||||
struct metal2vulkan-runtime::VisibleFunctionTable #[derive(Clone)] pub struct VisibleFunctionTable
|
||||
struct metal2vulkan-runtime::VisibleFunctionTableDescriptor #[derive(Clone, Copy, Debug, Default, PartialEq, Eq)] #[non_exhaustive] pub struct VisibleFunctionTableDescriptor
|
||||
struct metal2vulkan-runtime::floor::BelowFloor #[derive(Clone, Debug, PartialEq, Eq)] pub struct BelowFloor
|
||||
struct metal2vulkan-runtime::floor::Capabilities #[derive(Debug)] pub struct Capabilities
|
||||
struct metal2vulkan-runtime::floor::Capabilities pub struct Capabilities
|
||||
struct metal2vulkan-runtime::floor::DgcFeatures #[derive(Clone, Copy)] #[repr(C)] pub struct DgcFeatures
|
||||
struct metal2vulkan-runtime::floor::Features #[derive(Clone, Copy, Debug, Default)] pub struct Features
|
||||
struct metal2vulkan-runtime::floor::Features #[derive(Clone, Copy, Default)] pub struct Features
|
||||
struct metal2vulkan-runtime::floor::IndirectCommandLimits #[derive(Clone, Copy, Debug, PartialEq, Eq)] pub struct IndirectCommandLimits
|
||||
struct metal2vulkan-runtime::floor::Maintenance8Features #[derive(Clone, Copy)] #[repr(C)] pub struct Maintenance8Features
|
||||
struct metal2vulkan-runtime::floor::MemoryTypes #[derive(Clone, Copy, Debug, PartialEq, Eq)] pub struct MemoryTypes
|
||||
@@ -7161,6 +7161,7 @@ trait-impl metal2vulkan-runtime::Texture impl crate::kept::Handle impl crate::ke
|
||||
trait-impl metal2vulkan-runtime::TextureSwizzleChannels impl Default impl Default for TextureSwizzleChannels
|
||||
trait-impl metal2vulkan-runtime::floor::BelowFloor impl fmt::Display impl fmt::Display for BelowFloor
|
||||
trait-impl metal2vulkan-runtime::floor::BelowFloor impl std::error::Error impl std::error::Error for BelowFloor
|
||||
trait-impl metal2vulkan-runtime::floor::Capabilities impl std::fmt::Debug impl std::fmt::Debug for Capabilities
|
||||
trait-impl metal2vulkan-runtime::floor::DgcFeatures impl Default impl Default for DgcFeatures
|
||||
trait-impl metal2vulkan-runtime::floor::DgcFeatures impl fe impl Send unsafe impl Send for DgcFeatures
|
||||
trait-impl metal2vulkan-runtime::floor::DgcFeatures impl fe impl Sync unsafe impl Sync for DgcFeatures
|
||||
|
||||
|
Can't render this file because it is too large.
|
Reference in new issue
Block a user