载入中...
搜索中...
未找到
PbrVariantSource.h
浏览该文件的文档.
1#pragma once
2
3#include "common/Export.h"
4
5#include <string_view>
6#include <string>
7
9
10namespace eve::graphics::webgpu {
11
14 std::string_view vertex;
15 std::string_view fragment;
16};
17
20 std::string vertex;
21 std::string fragment;
22};
23
30
38 bool gbuffer = false);
39
40} // namespace eve::graphics::webgpu
#define EVENGINE_API_BACKENDS
Definition Export.h:108
PbrSpecializedSources specializePbrVariantSources(const PbrVariantPlan &plan, bool gbuffer)
Specialize the generated WGSL for the resource reachability encoded by a checked plan.
PbrVariantSources pbrVariantBaseSources()
Return immutable full PBR WGSL generated from the canonical GLSL implementation.
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.