载入中...
搜索中...
未找到
Shader.cpp
浏览该文件的文档.
11 DiagnosticCode::InvalidArgument, "custom mesh texture slot is outside [0,4)", {}, {}, "graphics.shader"));
static Diagnostic error(DiagnosticCode code, std::string message, std::string path={}, DiagnosticDetails details={}, std::string source={})
Construct an error diagnostic with the standard error severity.
Definition Diagnostic.h:125
static Result failure(Status status)
Construct a failed result from a structured status.
Definition Result.h:175
bool hasUniform(const std::string &name) const
Definition Shader.cpp:59
Shader()
void sendVec2(const std::string &name, float x, float y)
Definition Shader.cpp:97
void sendFloat(const std::string &name, float x)
Definition Shader.cpp:95
void sendMatrix(const std::string &name, const glm::mat4 &m)
Definition Shader.cpp:112
int getFromVar(const std::string &name, void *data, size_t size) const
Definition Shader.cpp:84
void sendVec3(const std::string &name, float x, float y, float z)
Definition Shader.cpp:102
int declareMatrix(const std::string &name)
Definition Shader.cpp:47
int getUniformIndex(const std::string &name) const
Definition Shader.cpp:61
void setPushConstantBlock(const std::array< float, kMaxFloats > &values) noexcept
Replace the entire fixed push-constant ABI without name lookup or allocation.
Definition Shader.cpp:20
int getUniformFloatCount(const std::string &name) const
Definition Shader.cpp:67
int declareFloat(const std::string &name)
Reserve sequential float slots in the push-constant block. Returns start index.
Definition Shader.cpp:43
Result< void > setMeshTexture(std::size_t slot, Texture *texture)
Assign a borrowed custom-mesh texture to a portable slot in [0,4).
Definition Shader.cpp:8
void sendVec4(const std::string &name, float x, float y, float z, float w)
Definition Shader.cpp:107
int sendToVar(const std::string &name, const void *data, size_t size)
Low-level blob write into a declared uniform (size must match declaration).
Definition Shader.cpp:73
~Shader()
GPU texture created via Graphics::newTexture. Owns GPU resources through an opaque backend handle.
Definition Texture.h:18
卡牌游戏 UI 工具模块:工厂 + 脚本绑定入口。 功能参考 ycarowr/UiCard:扇形手牌布局、抽牌/洗牌、悬浮放大、拖拽到落牌区、 敌方手牌(背面/偷看)、费用不足置灰,以及可实时调节的布局...
Definition Animation.h:25
@ InvalidArgument