examples/features/src/cooperative_matrix/README.md
This example demonstrates how to use cooperative matrix operations (also known as tensor cores on NVIDIA GPUs) to perform efficient matrix multiplication on the GPU.
For the full description of the cooperative matrix feature (supported configurations, WGSL types and operations, validation rules, and backend support), see the central API spec:
docs/api-specs/cooperative_matrix.mdThis example computes C = A * B + C where:
The example:
Features::EXPERIMENTAL_COOPERATIVE_MATRIXadapter.cooperative_matrix_properties() that matches the tile size and element types used by this exampledocs/api-specs/cooperative_matrix.md for details on hardware / backend supportcargo run --bin wgpu-examples -- cooperative_matrix
create_shader_module with full validation