mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-23 10:50:01 +00:00
graphics mod data for custom meshes
This commit is contained in:
parent
2b38e91884
commit
61fb3723f0
1 changed files with 18 additions and 0 deletions
|
@ -12,18 +12,36 @@
|
|||
#include "Common/CommonTypes.h"
|
||||
#include "Common/Matrix.h"
|
||||
#include "Common/SmallVector.h"
|
||||
#include "VideoCommon/AbstractGfx.h"
|
||||
#include "VideoCommon/Assets/TextureAsset.h"
|
||||
#include "VideoCommon/ConstantManager.h"
|
||||
#include "VideoCommon/PixelShaderGen.h"
|
||||
|
||||
namespace GraphicsModActionData
|
||||
{
|
||||
struct MeshChunk
|
||||
{
|
||||
std::span<u8> vertex_data;
|
||||
std::span<u16> index_data;
|
||||
u32 vertex_stride;
|
||||
NativeVertexFormat* vertex_format;
|
||||
PrimitiveType primitive_type;
|
||||
u32 components_available;
|
||||
Common::Matrix44 transform;
|
||||
CullMode cull_mode = CullMode::Front;
|
||||
};
|
||||
struct DrawStarted
|
||||
{
|
||||
const Common::SmallVector<u32, 8>& texture_units;
|
||||
const NativeVertexFormat& current_vertex_format;
|
||||
std::span<const u8> original_mesh_data;
|
||||
u32 current_components_available;
|
||||
bool* skip;
|
||||
std::optional<CustomPixelShader>* custom_pixel_shader;
|
||||
std::span<u8>* material_uniform_buffer;
|
||||
std::optional<MeshChunk>* mesh_chunk;
|
||||
u32* current_mesh_index;
|
||||
bool* more_data;
|
||||
};
|
||||
|
||||
struct EFB
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue