载入中...
搜索中...
未找到
StyleShaders.h
浏览该文件的文档.
1#pragma once
2#include "common/Export.h"
3
4
6
7#include <cstdint>
8#include <string>
9#include <vector>
10
11namespace eve::graphics {
12class Graphics;
13class Shader;
14} // namespace eve::graphics
15
16namespace eve::stylize {
17
20 const char *id;
21 bool post;
22 bool mesh;
23 bool cpu;
24 bool depth;
25 bool normal;
28};
29
32 const char *id;
34 float minValue;
35 float maxValue;
36};
37
39EVENGINE_API_WORLD const StyleDefinition *findStyleDefinition(const std::string &style);
40
43EVENGINE_API_WORLD bool isKnownStyle(const std::string &style);
45int styleCount();
47std::string styleIdAt(int index);
48
51EVENGINE_API_WORLD bool styleSupports(const std::string &style, const std::string &feature);
52
55EVENGINE_API_WORLD int styleParamCount(const std::string &style);
57std::string styleParamName(const std::string &style, int index);
59EVENGINE_API_WORLD const StyleParameterDesc *findStyleParameter(const std::string &style, const std::string &name);
61EVENGINE_API_WORLD const StyleParameterDesc *styleParameterAt(const std::string &style, int index);
62
65void bindPostUniforms(graphics::Shader *shader, const std::string &style);
66
69EVENGINE_API_WORLD void bindMeshUniforms(graphics::Shader *shader, const std::string &style);
70
73graphics::Shader *createPostShader(graphics::Graphics *gfx, const std::string &style);
74
81
82} // namespace eve::stylize
#define EVENGINE_API_WORLD
Definition Export.h:109
std::string name
Shader * shader
uint32_t index
Custom GPU program.
Definition Shader.h:39
卡牌游戏 UI 工具模块:工厂 + 脚本绑定入口。 功能参考 ycarowr/UiCard:扇形手牌布局、抽牌/洗牌、悬浮放大、拖拽到落牌区、 敌方手牌(背面/偷看)、费用不足置灰,以及可实时调节的布局...
Definition Animation.h:25
PostEffectStage
Stable insertion points for full-screen effects.
Definition PostEffect.h:8
graphics::Shader * createMeshShader(graphics::Graphics *gfx, const std::string &style)
Creates mesh shader.
bool styleSupports(const std::string &style, const std::string &feature)
Style supports.
std::string styleIdAt(int index)
Style id at.
graphics::Shader * createPostShader(graphics::Graphics *gfx, const std::string &style)
Creates post shader.
void bindMeshUniforms(graphics::Shader *shader, const std::string &style)
Binds mesh uniforms.
int styleCount()
Style count.
int styleParamCount(const std::string &style)
Style param count.
void bindPostUniforms(graphics::Shader *shader, const std::string &style)
Binds post uniforms.
bool isKnownStyle(const std::string &style)
True when known style.
const StyleParameterDesc * findStyleParameter(const std::string &style, const std::string &name)
Finds style parameter.
std::string styleParamName(const std::string &style, int index)
Style param name.
const StyleParameterDesc * styleParameterAt(const std::string &style, int index)
Style parameter at.
const StyleDefinition * findStyleDefinition(const std::string &style)
Return a built-in definition, or nullptr when the id is unknown.
Immutable capability metadata for one built-in stylization recipe.
graphics::PostEffectStage stage
Tooling metadata for one user-facing float parameter.