shithub: gpufs

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