载入中...
搜索中...
未找到
eve::stylize 命名空间参考

class  StyleChain
 Ordered multi-pass stylize pipeline (extension point). 更多...
 
class  StylePass
 One stylized post-process pass bound to a style id (built-in or custom label). Draws a full-quad of the source texture through a style fragment shader. 更多...
 
class  Stylize
 Stylized / NPR rendering module — stable public surface for future expansion. 更多...
 

函数

image::ImageDataprocessImageCpu (image::ImageData *src, const std::string &style)
 CPU NPR helpers — returns a new RGBA8 ImageData (caller owns).
 
bool isKnownStyle (const std::string &style)
 
int styleCount ()
 
std::string styleIdAt (int index)
 
bool styleSupports (const std::string &style, const std::string &feature)
 
int styleParamCount (const std::string &style)
 
std::string styleParamName (const std::string &style, int index)
 
void bindPostUniforms (graphics::Shader *shader, const std::string &style)
 
void bindMeshUniforms (graphics::Shader *shader, const std::string &style)
 
graphics::ShadercreatePostShader (graphics::Graphics *gfx, const std::string &style)
 
graphics::ShadercreateMeshShader (graphics::Graphics *gfx, const std::string &style)
 
 Module_IMPL (Stylize, new Stylize())
 

函数说明

◆ bindMeshUniforms()

void eve::stylize::bindMeshUniforms ( graphics::Shader shader,
const std::string &  style 
)

Declare + seed defaults for a mesh style shader.

在文件 StyleShaders.cpp314 行定义.

引用了 shader.

被这些函数引用 createMeshShader().

◆ bindPostUniforms()

void eve::stylize::bindPostUniforms ( graphics::Shader shader,
const std::string &  style 
)

Declare + seed default push-constant uniforms for a post style shader.

在文件 StyleShaders.cpp210 行定义.

引用了 shader.

被这些函数引用 createPostShader().

◆ createMeshShader()

graphics::Shader * eve::stylize::createMeshShader ( graphics::Graphics gfx,
const std::string &  style 
)

Create a 3D mesh Shader for styles that have object-space variants. cartoon → reuse graphics mesh3d_toon SPIR-V; ink → ink_mesh; others → nullptr.

在文件 StyleShaders.cpp393 行定义.

引用了 bindMeshUniforms(), frag, eve::graphics::Graphics::getBackendName(), eve::graphics::Shader::gpuHandle, eve::graphics::Graphics::newMeshShaderFromSpv(), eve::graphics::Graphics::newMeshShaderFromWgsl(), eve::graphics::Shader::setXray() , 以及 vert.

被这些函数引用 eve::stylize::Stylize::newMeshShader().

◆ createPostShader()

graphics::Shader * eve::stylize::createPostShader ( graphics::Graphics gfx,
const std::string &  style 
)

Create a 2D post-process Shader from embedded SPIR-V (owned by Graphics).

在文件 StyleShaders.cpp371 行定义.

引用了 bindPostUniforms(), frag, eve::graphics::Shader::gpuHandle, isKnownStyle() , 以及 eve::graphics::Graphics::newShaderFromSpv().

被这些函数引用 eve::stylize::Stylize::newPass() , 以及 eve::stylize::Stylize::newPostShader().

◆ isKnownStyle()

bool eve::stylize::isKnownStyle ( const std::string &  style)

Built-in style ids accepted by string APIs.

在文件 StyleShaders.cpp155 行定义.

被这些函数引用 createPostShader(), eve::stylize::Stylize::hasStyle() , 以及 styleSupports().

◆ Module_IMPL()

eve::stylize::Module_IMPL ( Stylize  ,
new   Stylize() 
)

◆ processImageCpu()

image::ImageData * eve::stylize::processImageCpu ( image::ImageData src,
const std::string &  style 
)

CPU NPR helpers — returns a new RGBA8 ImageData (caller owns).

在文件 ImageStylize.cpp152 行定义.

被这些函数引用 eve::stylize::Stylize::processImage().

◆ styleCount()

int eve::stylize::styleCount ( )

在文件 StyleShaders.cpp159 行定义.

被这些函数引用 eve::stylize::Stylize::getStyleCount().

◆ styleIdAt()

std::string eve::stylize::styleIdAt ( int  index)

在文件 StyleShaders.cpp161 行定义.

被这些函数引用 eve::stylize::Stylize::getStyleId().

◆ styleParamCount()

int eve::stylize::styleParamCount ( const std::string &  style)

Built-in post param name table (for tooling / UI introspection).

在文件 StyleShaders.cpp191 行定义.

被这些函数引用 eve::stylize::Stylize::getStyleParamCount() , 以及 styleParamName().

◆ styleParamName()

std::string eve::stylize::styleParamName ( const std::string &  style,
int  index 
)

在文件 StyleShaders.cpp200 行定义.

引用了 styleParamCount().

被这些函数引用 eve::stylize::Stylize::getStyleParamName().

◆ styleSupports()

bool eve::stylize::styleSupports ( const std::string &  style,
const std::string &  feature 
)

Feature flags: "post" | "mesh" | "cpu" | "gbuffer" (gbuffer reserved).

在文件 StyleShaders.cpp166 行定义.

引用了 isKnownStyle().

被这些函数引用 eve::stylize::Stylize::hasMeshStyle() , 以及 eve::stylize::Stylize::supports().