mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-11 02:28:51 +00:00
VideoCommon: Make IsPassthrough() a function of the ShaderUid.
This commit is contained in:
parent
c9e469f832
commit
1b9fe70d7c
4 changed files with 4 additions and 10 deletions
|
@ -5,6 +5,7 @@
|
|||
#pragma once
|
||||
|
||||
#include "VideoCommon/ShaderGenCommon.h"
|
||||
#include "VideoCommon/VertexManagerBase.h"
|
||||
#include "VideoCommon/VideoCommon.h"
|
||||
|
||||
#pragma pack(1)
|
||||
|
@ -12,6 +13,7 @@
|
|||
struct geometry_shader_uid_data
|
||||
{
|
||||
u32 NumValues() const { return sizeof(geometry_shader_uid_data); }
|
||||
bool IsPassthrough() const { return primitive_type == PRIMITIVE_TRIANGLES && !stereo && !wireframe; }
|
||||
|
||||
u32 stereo : 1;
|
||||
u32 numTexGens : 4;
|
||||
|
@ -26,4 +28,3 @@ typedef ShaderUid<geometry_shader_uid_data> GeometryShaderUid;
|
|||
|
||||
void GenerateGeometryShaderCode(ShaderCode& object, u32 primitive_type, API_TYPE ApiType);
|
||||
void GetGeometryShaderUid(GeometryShaderUid& object, u32 primitive_type, API_TYPE ApiType);
|
||||
bool IsPassthroughGeometryShader(GeometryShaderUid& object);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue