mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-12-29 04:00:50 +01:00
e149ad4f0a
SPDX standardizes how source code conveys its copyright and licensing information. See https://spdx.github.io/spdx-spec/1-rationale/ . SPDX tags are adopted in many large projects, including things like the Linux kernel.
30 lines
878 B
C++
30 lines
878 B
C++
// Copyright 2014 Dolphin Emulator Project
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#pragma once
|
|
|
|
#include <functional>
|
|
#include "Common/CommonTypes.h"
|
|
#include "VideoCommon/RenderState.h"
|
|
#include "VideoCommon/ShaderGenCommon.h"
|
|
|
|
enum class APIType;
|
|
|
|
#pragma pack(1)
|
|
struct geometry_shader_uid_data
|
|
{
|
|
u32 NumValues() const { return sizeof(geometry_shader_uid_data); }
|
|
bool IsPassthrough() const;
|
|
|
|
u32 numTexGens : 4;
|
|
u32 primitive_type : 2;
|
|
};
|
|
#pragma pack()
|
|
|
|
using GeometryShaderUid = ShaderUid<geometry_shader_uid_data>;
|
|
|
|
ShaderCode GenerateGeometryShaderCode(APIType ApiType, const ShaderHostConfig& host_config,
|
|
const geometry_shader_uid_data* uid_data);
|
|
GeometryShaderUid GetGeometryShaderUid(PrimitiveType primitive_type);
|
|
void EnumerateGeometryShaderUids(const std::function<void(const GeometryShaderUid&)>& callback);
|