public ShaderUniformDeclaration(ShaderStruct uniformStruct, string name, int count = 1)
 {
     Type   = ShaderUniformType.STRUCT;
     Struct = uniformStruct;
     Name   = name;
     Count  = count;
     Size   = Struct.Size * Count;
 }
Пример #2
0
        public GLShaderUniformDeclaration(ShaderStruct uniformStruct, string name, uint count = 1)
        {
            this.@struct = uniformStruct;
            this.type    = Type.STRUCT;

            this.name  = name;
            this.count = count;
            this.size  = @struct.GetSize() * count;
        }
Пример #3
0
        public GLShaderUniformDeclaration(Type type, string name, uint count = 1)
        {
            this.type    = type;
            this.@struct = null;

            this.name  = name;
            this.count = count;
            this.size  = SizeOfUniformType(type) * count;
        }