mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-07-09 14:45:58 +00:00
This is required to generate valid MSL code, and will soon be validated by Tint too. Change-Id: I4c5f5c4ecb1c91131c934de1132217d9f6be1f8e Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/53420 Auto-Submit: James Price <jrprice@google.com> Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: Ben Clayton <bclayton@google.com> Reviewed-by: Ben Clayton <bclayton@google.com>
20 lines
329 B
WebGPU Shading Language
20 lines
329 B
WebGPU Shading Language
fn determinant_a0a87c() {
|
|
var res : f32 = determinant(mat4x4<f32>());
|
|
}
|
|
|
|
[[stage(vertex)]]
|
|
fn vertex_main() -> [[builtin(position)]] vec4<f32> {
|
|
determinant_a0a87c();
|
|
return vec4<f32>();
|
|
}
|
|
|
|
[[stage(fragment)]]
|
|
fn fragment_main() {
|
|
determinant_a0a87c();
|
|
}
|
|
|
|
[[stage(compute)]]
|
|
fn compute_main() {
|
|
determinant_a0a87c();
|
|
}
|