// This file is auto-generated by wgsl-gen. Do not edit manually.
|
|
#pragma once
|
#ifndef INCLUDED_BY_WGSL_GEN_IMPL
|
#error "This file is expected to be included by wgsl-gen impl. Do not include it directly."
|
#endif
|
|
// Helper functions or macros
|
|
#pragma push_macro("MainFunctionStart")
|
#undef MainFunctionStart
|
#define MainFunctionStart() { [[maybe_unused]] auto& ss = shader_helper.MainFunctionBody();
|
#pragma push_macro("MainFunctionEnd")
|
#undef MainFunctionEnd
|
#define MainFunctionEnd() }
|
|
// Helper templates
|
|
namespace wgsl_detail {
|
template <typename T, typename = std::enable_if_t<std::is_integral_v<T>>>
|
std::string pass_as_string(T&& v) {
|
return std::to_string(std::forward<T>(v));
|
}
|
template <typename...>
|
std::string_view pass_as_string(std::string_view sv) {
|
return sv;
|
}
|
template <typename T>
|
std::string pass_as_string(T&& v) {
|
return std::forward<T>(v);
|
}
|
} // namespace wgsl_detail
|
|
#include "wgsl_template_gen/string_table.h" // 3207f160f8bd1dca0fa8d4d6867a9890f785af733bb5f27183b8ed22bbe1089a
|
|
// Include template implementations
|
|
#include "wgsl_template_gen/generated/math/matmul_gemv.h" // 59e4865f8dfb09777dff88b1b5983d18704a0713a43e26a48ee0479420b5dba5
|
#include "wgsl_template_gen/generated/math/subgroup_matrix_gemm_8x16x16.h" // c1d802ca557f329f392fcd71ac806d73af886bcc1a4e0c19f4c39affb0bfd99e
|
#include "wgsl_template_gen/generated/math/subgroup_matrix_matmul_8x16x16.h" // 8576f40cad9c8942f6c88c357b4e5dd327a30210f07d37da4759a90b53e4b482
|
#include "wgsl_template_gen/generated/math/subgroup_matrix_matmul_pad_b.h" // c58d42477e567010836d7760ad3bc35bf3535d3b2d495d0e41802488a93551c9
|
#include "wgsl_template_gen/generated/nn/im2col_matmul.h" // 00270c1d35c7255219ea3c2c80dfcf9ffd51bed5f86016a03696adbfb7293e3a
|
#include "wgsl_template_gen/generated/tensor/oihw_to_ohwi.h" // a8b33bafa84a087e1a25113d2bb9713d335b42df628c8388b102a85653e82a64
|
#include "wgsl_template_gen/generated/tensor/pad.h" // 6c0f4b9b286750f45362a67aad3bbf37997b64b7d1b87648973fd8044a334d8e
|
#include "wgsl_template_gen/generated/nn/conv_transpose3d.h" // 34a8d51fedf2ba9ad55a894d7795bf57f6c4a49e74d4f3a053bc558c02f7f690
|
|
#pragma pop_macro("MainFunctionStart")
|
#pragma pop_macro("MainFunctionEnd")
|