mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
VideoCommon: move vertex shader gen logic to a 'process_vertex()' function, to eventually allow for custom shaders to override vertex logic
This commit is contained in:
@ -88,6 +88,15 @@ struct vertex_shader_uid_data
|
||||
|
||||
using VertexShaderUid = ShaderUid<vertex_shader_uid_data>;
|
||||
|
||||
struct CustomVertexContents
|
||||
{
|
||||
std::string_view shader = "";
|
||||
std::string_view uniforms = "";
|
||||
};
|
||||
|
||||
VertexShaderUid GetVertexShaderUid();
|
||||
ShaderCode GenerateVertexShaderCode(APIType api_type, const ShaderHostConfig& host_config,
|
||||
const vertex_shader_uid_data* uid_data);
|
||||
const vertex_shader_uid_data* uid_data,
|
||||
CustomVertexContents custom_contents);
|
||||
void WriteVertexBody(APIType api_type, const ShaderHostConfig& host_config,
|
||||
const vertex_shader_uid_data* uid_data, ShaderCode& out);
|
||||
|
Reference in New Issue
Block a user