mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-06-06 11:01:38 +12:00
[PICA] Fixed vertex attribute uploads
This commit is contained in:
parent
a86796936f
commit
4b3c7955dd
6 changed files with 60 additions and 9 deletions
|
@ -6,6 +6,11 @@
|
|||
#include "opengl.hpp"
|
||||
#include "PICA/float_types.hpp"
|
||||
|
||||
enum class ShaderType {
|
||||
Vertex, Geometry
|
||||
};
|
||||
|
||||
template <ShaderType type>
|
||||
class PICAShader {
|
||||
int bufferIndex; // Index of the next instruction to overwrite
|
||||
using f24 = Floats::f24;
|
||||
|
@ -19,7 +24,8 @@ public:
|
|||
std::array<u32, 4> intUniforms;
|
||||
std::array<vec4f, 8> floatUniforms;
|
||||
|
||||
std::array<vec4f, 16> attributes;
|
||||
std::array<vec4f, 16> fixedAttributes; // Fixed vertex attributes
|
||||
std::array<vec4f, 16> attributes; // Attributes past to the shader
|
||||
std::array<vec4f, 16> outputs;
|
||||
|
||||
void reset() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue