Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Example output file (one of 3 files) produced by `metal-source`
{
"version": {
"major": 0,
"minor": 1,
"sub_minor": 0
},
"generator": "MetalFramework",
"pipeline_type": "render",
"pipeline": {
"vertex_descriptor": {
"max_call_stack_depth": 1,
"rasterization_enabled": true,
"input_primitive_topology": "Unspecified",
"max_tessellation_factor": 16,
"tessellation_factor_scale_enabled": false,
"tessellation_factor_format": "Half",
"tessellation_control_point_index_type": "None",
"tessellation_factor_step_function": "Constant",
"tessellation_output_winding_order": "Clockwise",
"tessellation_partition_mode": "Pow2",
"max_vertex_amplification_count": 1,
"buffers": [
{
"mutability": "Default"
},
{
"mutability": "Default"
},
{
"mutability": "Default"
},
{
"mutability": "Default"
},
{
"mutability": "Default"
},
{
"mutability": "Default"
},
{
"mutability": "Default"
},
{
"mutability": "Default"
},
{
"mutability": "Default"
},
{
"mutability": "Default"
},
{
"mutability": "Default"
},
{
"mutability": "Default"
},
{
"mutability": "Default"
},
{
"mutability": "Default"
},
{
"mutability": "Default"
},
{
"mutability": "Default"
},
{
"mutability": "Default"
},
{
"mutability": "Default"
},
{
"mutability": "Default"
},
{
"mutability": "Default"
},
{
"mutability": "Default"
},
{
"mutability": "Default"
},
{
"mutability": "Default"
},
{
"mutability": "Default"
},
{
"mutability": "Default"
},
{
"mutability": "Default"
},
{
"mutability": "Default"
},
{
"mutability": "Default"
},
{
"mutability": "Default"
},
{
"mutability": "Default"
},
{
"mutability": "Default"
}
],
"support_indirect_command_buffers": false,
"support_external_binary_functions": false
},
"fragment_descriptor": {
"max_call_stack_depth": 1,
"rasterization_enabled": true,
"alpha_to_coverage_enabled": false,
"alpha_to_one_enabled": false,
"raster_sample_count": 1,
"color_attachments": [
{
"pixel_format": "BGRA8Unorm",
"write_mask": "All",
"blending_enabled": false,
"alpha_blend_operation": "Add",
"rgb_blend_operation": "Add",
"destination_alpha_blend_factor": "Zero",
"destination_rgb_blend_factor": "Zero",
"source_alpha_blend_factor": "One",
"source_rgb_blend_factor": "One"
},
{
"pixel_format": "Invalid",
"write_mask": "All",
"blending_enabled": false,
"alpha_blend_operation": "Add",
"rgb_blend_operation": "Add",
"destination_alpha_blend_factor": "Zero",
"destination_rgb_blend_factor": "Zero",
"source_alpha_blend_factor": "One",
"source_rgb_blend_factor": "One"
},
{
"pixel_format": "Invalid",
"write_mask": "All",
"blending_enabled": false,
"alpha_blend_operation": "Add",
"rgb_blend_operation": "Add",
"destination_alpha_blend_factor": "Zero",
"destination_rgb_blend_factor": "Zero",
"source_alpha_blend_factor": "One",
"source_rgb_blend_factor": "One"
},
{
"pixel_format": "Invalid",
"write_mask": "All",
"blending_enabled": false,
"alpha_blend_operation": "Add",
"rgb_blend_operation": "Add",
"destination_alpha_blend_factor": "Zero",
"destination_rgb_blend_factor": "Zero",
"source_alpha_blend_factor": "One",
"source_rgb_blend_factor": "One"
},
{
"pixel_format": "Invalid",
"write_mask": "All",
"blending_enabled": false,
"alpha_blend_operation": "Add",
"rgb_blend_operation": "Add",
"destination_alpha_blend_factor": "Zero",
"destination_rgb_blend_factor": "Zero",
"source_alpha_blend_factor": "One",
"source_rgb_blend_factor": "One"
},
{
"pixel_format": "Invalid",
"write_mask": "All",
"blending_enabled": false,
"alpha_blend_operation": "Add",
"rgb_blend_operation": "Add",
"destination_alpha_blend_factor": "Zero",
"destination_rgb_blend_factor": "Zero",
"source_alpha_blend_factor": "One",
"source_rgb_blend_factor": "One"
},
{
"pixel_format": "Invalid",
"write_mask": "All",
"blending_enabled": false,
"alpha_blend_operation": "Add",
"rgb_blend_operation": "Add",
"destination_alpha_blend_factor": "Zero",
"destination_rgb_blend_factor": "Zero",
"source_alpha_blend_factor": "One",
"source_rgb_blend_factor": "One"
},
{
"pixel_format": "Invalid",
"write_mask": "All",
"blending_enabled": false,
"alpha_blend_operation": "Add",
"rgb_blend_operation": "Add",
"destination_alpha_blend_factor": "Zero",
"destination_rgb_blend_factor": "Zero",
"source_alpha_blend_factor": "One",
"source_rgb_blend_factor": "One"
}
],
"depth_attachment_pixel_format": "Invalid",
"stencil_attachment_pixel_format": "Invalid",
"buffers": [
{
"mutability": "Default"
},
{
"mutability": "Default"
},
{
"mutability": "Default"
},
{
"mutability": "Default"
},
{
"mutability": "Default"
},
{
"mutability": "Default"
},
{
"mutability": "Default"
},
{
"mutability": "Default"
},
{
"mutability": "Default"
},
{
"mutability": "Default"
},
{
"mutability": "Default"
},
{
"mutability": "Default"
},
{
"mutability": "Default"
},
{
"mutability": "Default"
},
{
"mutability": "Default"
},
{
"mutability": "Default"
},
{
"mutability": "Default"
},
{
"mutability": "Default"
},
{
"mutability": "Default"
},
{
"mutability": "Default"
},
{
"mutability": "Default"
},
{
"mutability": "Default"
},
{
"mutability": "Default"
},
{
"mutability": "Default"
},
{
"mutability": "Default"
},
{
"mutability": "Default"
},
{
"mutability": "Default"
},
{
"mutability": "Default"
},
{
"mutability": "Default"
},
{
"mutability": "Default"
},
{
"mutability": "Default"
}
],
"support_indirect_command_buffers": false,
"support_external_binary_functions": false
}
}
}
./metallib/305B9E6E-5255-3CEF-99D1-C61DFF032BFC.metallib
./object/1-0.metallib
./object/0-0.metallib
./descriptor/782DD8BD0B582F883334690700E62239D884FE21CC0AD7AD6D6A9099A26238C6.air-pipeline
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment