mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 05:47:56 -07:00
31 lines
846 B
C
31 lines
846 B
C
// Copyright 2014 Dolphin Emulator Project
|
|
// Licensed under GPLv2+
|
|
// Refer to the license.txt file included.
|
|
|
|
#pragma once
|
|
|
|
#include "VideoCommon/ShaderGenCommon.h"
|
|
#include "VideoCommon/VertexManagerBase.h"
|
|
#include "VideoCommon/VideoCommon.h"
|
|
|
|
#pragma pack(1)
|
|
|
|
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;
|
|
u32 pixel_lighting : 1;
|
|
u32 primitive_type : 2;
|
|
u32 wireframe : 1;
|
|
};
|
|
|
|
#pragma pack()
|
|
|
|
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);
|