载入中...
搜索中...
未找到
PbrVariantSource.h
浏览该文件的文档.
1#pragma once
2
3#include <string_view>
4#include <string>
5
7
8namespace eve::graphics::webgpu {
9
12 std::string_view vertex;
13 std::string_view fragment;
14};
15
18 std::string vertex;
19 std::string fragment;
20};
21
28
35
36} // namespace eve::graphics::webgpu
PbrVariantSources pbrVariantBaseSources()
Return immutable full PBR WGSL generated from the canonical GLSL implementation.
PbrSpecializedSources specializePbrVariantSources(const PbrVariantPlan &plan)
Specialize the generated WGSL for the resource reachability encoded by a checked plan.
Owning WGSL stages after unreachable texture operations and declarations are removed.
Stable resource-layout key and checked stage counts for a PBR snapshot.
Reproducibly generated full PBR WGSL sources before resource specialization.