shithub: gpufs

ref: d53100c1bdfb9036a824fa60cd2dd58d02120210
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;
};