2014-10-16 10:52:32 -06:00
|
|
|
// Copyright 2013 Dolphin Emulator Project
|
|
|
|
// Licensed under GPLv2
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "VideoCommon/ShaderGenCommon.h"
|
|
|
|
#include "VideoCommon/VideoCommon.h"
|
|
|
|
|
|
|
|
#pragma pack(1)
|
|
|
|
|
|
|
|
struct geometry_shader_uid_data
|
|
|
|
{
|
|
|
|
u32 NumValues() const { return sizeof(geometry_shader_uid_data); }
|
|
|
|
|
|
|
|
u32 stereo : 1;
|
2014-11-22 11:18:45 -07:00
|
|
|
u32 numTexGens : 4;
|
|
|
|
u32 pixel_lighting : 1;
|
2014-10-16 10:52:32 -06:00
|
|
|
};
|
|
|
|
|
|
|
|
#pragma pack()
|
|
|
|
|
|
|
|
typedef ShaderUid<geometry_shader_uid_data> GeometryShaderUid;
|
|
|
|
|
|
|
|
void GenerateGeometryShaderCode(ShaderCode& object, u32 components, API_TYPE ApiType);
|
|
|
|
void GetGeometryShaderUid(GeometryShaderUid& object, u32 components, API_TYPE ApiType);
|