载入中...
搜索中...
未找到
StyleShaders.cpp 文件参考
#include "stylize/StyleShaders.h"
#include "stylize/EffectShaders.h"
#include "common/Exception.h"
#include "graphics/Graphics.h"
#include "graphics/Shader.h"
#include "graphics/shaders/mesh3d_toon_frag_spv.inc"
#include "graphics/shaders/mesh3d_toon_vert_spv.inc"
#include "stylize/shaders/StylizeWgsl.h"
#include "stylize/shaders/anime_mesh_frag_spv.inc"
#include "stylize/shaders/anime_mesh_wgsl.inc"
#include "stylize/shaders/cartoon_post_frag_spv.inc"
#include "stylize/shaders/ink_mesh_frag_spv.inc"
#include "stylize/shaders/ink_post_frag_spv.inc"
#include "stylize/shaders/pixel_post_frag_spv.inc"
#include "stylize/shaders/watercolor_post_frag_spv.inc"
#include "stylize/shaders/xray_mesh_frag_spv.inc"
#include "stylize/shaders/ysa_mesh_frag_spv.inc"
#include "stylize/shaders/ysa_mesh_vert_spv.inc"
#include "stylize/shaders/ysa_mesh_wgsl.inc"
#include <algorithm>
#include <array>
#include <cstddef>
#include <vector>

浏览源代码.

命名空间

namespace  eve
 Build metadata (engine git commit, build time, third-party version).
 
namespace  eve::stylize
 

函数

const StyleDefinition * eve::stylize::findStyleDefinition (const std::string &style)
 Return a built-in definition, or nullptr when the id is unknown.
 
bool eve::stylize::isKnownStyle (const std::string &style)
 True when known style.
 
int eve::stylize::styleCount ()
 Style count.
 
std::string eve::stylize::styleIdAt (int index)
 Style id at.
 
bool eve::stylize::styleSupports (const std::string &style, const std::string &feature)
 Style supports.
 
int eve::stylize::styleParamCount (const std::string &style)
 Style param count.
 
std::string eve::stylize::styleParamName (const std::string &style, int index)
 Style param name.
 
const StyleParameterDesc * eve::stylize::styleParameterAt (const std::string &style, int index)
 Style parameter at.
 
const StyleParameterDesc * eve::stylize::findStyleParameter (const std::string &style, const std::string &name)
 Finds style parameter.
 
void eve::stylize::bindPostUniforms (graphics::Shader *shader, const std::string &style)
 Binds post uniforms.
 
void eve::stylize::bindMeshUniforms (graphics::Shader *shader, const std::string &style)
 Binds mesh uniforms.
 
graphics::Shader * eve::stylize::createPostShader (graphics::Graphics *gfx, const std::string &style)
 Creates post shader.
 
graphics::Shader * eve::stylize::createMeshShader (graphics::Graphics *gfx, const std::string &style)
 Creates mesh shader.