mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-20 19:55:46 +00:00
shader: Implement transform feedbacks and define file format
This commit is contained in:
parent
4a6c299e3f
commit
e59971ea1b
11 changed files with 272 additions and 23 deletions
|
@ -79,6 +79,12 @@ struct StorageDefinitions {
|
|||
Id U32x4{};
|
||||
};
|
||||
|
||||
struct GenericElementInfo {
|
||||
Id id{};
|
||||
u32 first_element{};
|
||||
u32 num_components{};
|
||||
};
|
||||
|
||||
class EmitContext final : public Sirit::Module {
|
||||
public:
|
||||
explicit EmitContext(const Profile& profile, IR::Program& program, u32& binding);
|
||||
|
@ -189,7 +195,7 @@ public:
|
|||
|
||||
Id output_point_size{};
|
||||
Id output_position{};
|
||||
std::array<Id, 32> output_generics{};
|
||||
std::array<std::array<GenericElementInfo, 4>, 32> output_generics{};
|
||||
|
||||
std::array<Id, 8> frag_color{};
|
||||
Id frag_depth{};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue