shithub: gpufs

ref: 2456c5671629b47378665485801e73aea7234856
dir: /objects.h/

View raw version
typedef struct Buffer Buffer;
struct Buffer {
	char *buffer;
	long len;
};

typedef struct Shader Shader;
struct Shader {
	u32int *buffer;
	long len;
	int descpool;
};

typedef struct DescSet DescSet;
struct DescSet {
	vlong *bindings; // id of buffer
	int numbindings;
};

typedef struct DescPool DescPool;
struct DescPool {
	DescSet *sets;
	int numsets;
};