Skip to content

Commit da8a467

Browse files
committed
Add user data pointers on all resource objects.
1 parent 4bb66f1 commit da8a467

13 files changed

Lines changed: 61 additions & 1 deletion

File tree

ObjectivelyGPU.xcodeproj/project.pbxproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,8 +296,8 @@
296296
6C38B23048C269B804E75F03 /* CommandBuffer.c */,
297297
09B8DD26CDB7926D89445C91 /* ComputePass.h */,
298298
ED8024CA4186E352C1EC4CA1 /* ComputePass.c */,
299-
CEBA3F742FF330A700758CA6 /* ComputePipeline.c */,
300299
CEBA3F642FF3211F00758CA6 /* ComputePipeline.h */,
300+
CEBA3F742FF330A700758CA6 /* ComputePipeline.c */,
301301
338EC7DCAE74C1B8C397D189 /* Config.h */,
302302
59334BDAED542AB6DE565EDD /* CopyPass.h */,
303303
C862954A9DD435C1FF7CD31D /* CopyPass.c */,

Sources/ObjectivelyGPU/Buffer.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,11 @@ struct Buffer {
9090
* @private
9191
*/
9292
RenderDevice *device;
93+
94+
/**
95+
* @brief User data.
96+
*/
97+
ident data;
9398
};
9499

95100
/**

Sources/ObjectivelyGPU/CommandBuffer.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,11 @@ struct CommandBuffer {
107107
* @private
108108
*/
109109
bool submitted;
110+
111+
/**
112+
* @brief User data.
113+
*/
114+
ident data;
110115
};
111116

112117
/**

Sources/ObjectivelyGPU/ComputePass.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,11 @@ struct ComputePass {
8383
* @brief The currently bound pipeline, or `NULL`.
8484
*/
8585
ComputePipeline *pipeline;
86+
87+
/**
88+
* @brief User data.
89+
*/
90+
ident data;
8691
};
8792

8893
/**

Sources/ObjectivelyGPU/ComputePipeline.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,11 @@ struct ComputePipeline {
7171
* @private
7272
*/
7373
RenderDevice *device;
74+
75+
/**
76+
* @brief User data.
77+
*/
78+
ident data;
7479
};
7580

7681
/**

Sources/ObjectivelyGPU/CopyPass.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,11 @@ struct CopyPass {
7676
* @private
7777
*/
7878
SDL_GPUCopyPass *pass;
79+
80+
/**
81+
* @brief User data.
82+
*/
83+
ident data;
7984
};
8085

8186
/**

Sources/ObjectivelyGPU/Framebuffer.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,11 @@ struct Framebuffer {
194194
* @private
195195
*/
196196
RenderDevice *device;
197+
198+
/**
199+
* @brief User data.
200+
*/
201+
ident data;
197202
};
198203

199204
/**

Sources/ObjectivelyGPU/GraphicsPipeline.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,11 @@ struct GraphicsPipeline {
7171
* @private
7272
*/
7373
RenderDevice *device;
74+
75+
/**
76+
* @brief User data.
77+
*/
78+
ident data;
7479
};
7580

7681
/**

Sources/ObjectivelyGPU/RenderDevice.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,11 @@ struct RenderDevice {
101101
* @private
102102
*/
103103
SwapchainTexture swapchain;
104+
105+
/**
106+
* @brief User data.
107+
*/
108+
ident data;
104109
};
105110

106111
/**

Sources/ObjectivelyGPU/RenderPass.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,11 @@ struct RenderPass {
103103
* @brief The current viewport.
104104
*/
105105
SDL_GPUViewport viewport;
106+
107+
/**
108+
* @brief User data.
109+
*/
110+
ident data;
106111
};
107112

108113
/**

0 commit comments

Comments
 (0)