2015-05-23 22:55:12 -06:00
|
|
|
// Copyright 2014 Dolphin Emulator Project
|
2015-05-17 17:08:10 -06:00
|
|
|
// Licensed under GPLv2+
|
2014-10-16 10:52:32 -06:00
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2017-02-01 08:56:13 -07:00
|
|
|
#include "Common/CommonTypes.h"
|
2014-10-16 10:52:32 -06:00
|
|
|
#include "VideoCommon/ShaderGenCommon.h"
|
2014-12-19 05:10:06 -07:00
|
|
|
#include "VideoCommon/VertexManagerBase.h"
|
2016-07-21 17:04:57 -06:00
|
|
|
|
|
|
|
enum class APIType;
|
2014-10-16 10:52:32 -06:00
|
|
|
|
|
|
|
#pragma pack(1)
|
|
|
|
|
|
|
|
struct geometry_shader_uid_data
|
|
|
|
{
|
2016-06-24 02:43:46 -06:00
|
|
|
u32 NumValues() const { return sizeof(geometry_shader_uid_data); }
|
2017-06-24 02:18:53 -06:00
|
|
|
bool IsPassthrough() const;
|
2016-06-24 02:43:46 -06:00
|
|
|
|
|
|
|
u32 numTexGens : 4;
|
|
|
|
u32 primitive_type : 2;
|
2014-10-16 10:52:32 -06:00
|
|
|
};
|
|
|
|
|
|
|
|
#pragma pack()
|
|
|
|
|
|
|
|
typedef ShaderUid<geometry_shader_uid_data> GeometryShaderUid;
|
|
|
|
|
2016-07-21 17:04:57 -06:00
|
|
|
ShaderCode GenerateGeometryShaderCode(APIType ApiType, const geometry_shader_uid_data* uid_data);
|
2016-01-16 03:49:39 -07:00
|
|
|
GeometryShaderUid GetGeometryShaderUid(u32 primitive_type);
|