mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2025-06-13 00:29:03 -05:00
shader: Implement NDC [-1, 1], attribute types and default varying initialization
This commit is contained in:
@ -4,8 +4,18 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <array>
|
||||
|
||||
#include "common/common_types.h"
|
||||
|
||||
namespace Shader {
|
||||
|
||||
enum class AttributeType : u8 {
|
||||
Float,
|
||||
SignedInt,
|
||||
UnsignedInt,
|
||||
};
|
||||
|
||||
struct Profile {
|
||||
bool unified_descriptor_binding{};
|
||||
bool support_vertex_instance_id{};
|
||||
@ -24,6 +34,9 @@ struct Profile {
|
||||
|
||||
// FClamp is broken and OpFMax + OpFMin should be used instead
|
||||
bool has_broken_spirv_clamp{};
|
||||
|
||||
std::array<AttributeType, 32> generic_input_types{};
|
||||
bool convert_depth_mode{};
|
||||
};
|
||||
|
||||
} // namespace Shader
|
||||
|
Reference in New Issue
Block a user