Overhaul the validation workflow around sharded authored cases, dependency-exact observations, incremental indexed corpus audits, bounded parallel translation, and native Metal/Vulkan comparison.\n\nExpand native AIR lowering, reflection, linked-function specialization, resource and stage-interface support, and structural CFG/pointer repair across the harvested macOS 26 corpus. Add exact intrinsic inventory, distributed 16x16x16 matrix lowering, explicit opaque tensor linkage, and regression coverage for the newly supported feature classes.\n\nThe final corpus verification accounts for all 88,819 indexed AIR modules under the current product fingerprint: 65,355 translate and validate directly, 23,464 require exact authored linkage, and zero fail or remain unresolved.
24 lines
772 B
Metal
24 lines
772 B
Metal
#include <metal_stdlib>
|
|
#include <metal_raytracing>
|
|
using namespace metal;
|
|
using namespace metal::raytracing;
|
|
|
|
struct RayResources {
|
|
intersection_function_table<instancing, triangle_data> table [[id(0)]];
|
|
};
|
|
|
|
kernel void argument_buffer_intersection_table(
|
|
instance_acceleration_structure acceleration_structure [[buffer(5)]],
|
|
constant RayResources &resources [[buffer(6)]],
|
|
device uint *output [[buffer(0)]]) {
|
|
ray query;
|
|
query.origin = float3(0.0f, 0.0f, 1.0f);
|
|
query.direction = float3(0.0f, 0.0f, -1.0f);
|
|
query.min_distance = 0.0f;
|
|
query.max_distance = 10.0f;
|
|
|
|
intersector<instancing, triangle_data> trace;
|
|
auto hit = trace.intersect(query, acceleration_structure, 0xffu, resources.table);
|
|
output[0] = uint(hit.type);
|
|
}
|