mirror of
https://github.com/love2d/love.git
synced 2026-08-16 16:20:42 +02:00
metal: support constant initializer values for local uniforms.
This commit is contained in:
@@ -158,6 +158,13 @@ public:
|
||||
};
|
||||
};
|
||||
|
||||
union LocalUniformValue
|
||||
{
|
||||
float f;
|
||||
int32 i;
|
||||
uint32 u;
|
||||
};
|
||||
|
||||
// The members in here must respect uniform buffer alignment/padding rules.
|
||||
struct BuiltinUniformData
|
||||
{
|
||||
@@ -259,10 +266,17 @@ protected:
|
||||
Access access;
|
||||
};
|
||||
|
||||
struct LocalUniform
|
||||
{
|
||||
DataBaseType dataType;
|
||||
std::vector<LocalUniformValue> initializerValues;
|
||||
};
|
||||
|
||||
struct ValidationReflection
|
||||
{
|
||||
std::map<std::string, BufferReflection> storageBuffers;
|
||||
std::map<std::string, StorageTextureReflection> storageTextures;
|
||||
std::map<std::string, LocalUniform> localUniforms;
|
||||
int localThreadgroupSize[3];
|
||||
bool usesPointSize;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user