Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .github/copilot-instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ typedef struct FooInterface FooInterface;
*/
struct Foo {
Bar bar; // superclass is always first
FooInterface *interface; // @protected
FooInterface *interface[0]; // @protected
int publicField;
SomeType *privateField; // @private
};
Expand Down Expand Up @@ -130,7 +130,6 @@ Class *_Foo(void) {
.name = "Foo",
.superclass = _Bar(),
.instanceSize = sizeof(Foo),
.interfaceOffset = offsetof(Foo, interface),
.interfaceSize = sizeof(FooInterface),
.initialize = initialize,
});
Expand Down
1 change: 0 additions & 1 deletion Sources/ObjectivelyGPU/Buffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,6 @@ Class *_Buffer(void) {
.name = "Buffer",
.superclass = _Object(),
.instanceSize = sizeof(Buffer),
.interfaceOffset = offsetof(Buffer, interface),
.interfaceSize = sizeof(BufferInterface),
.initialize = initialize,
});
Expand Down
4 changes: 2 additions & 2 deletions Sources/ObjectivelyGPU/Buffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,10 @@ struct Buffer {
Object object;

/**
* @brief The interface.
* @brief The interface type.
* @protected
*/
BufferInterface *interface;
BufferInterface *interface[0];

/**
* @brief The underlying SDL buffer.
Expand Down
1 change: 0 additions & 1 deletion Sources/ObjectivelyGPU/CommandBuffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,6 @@ Class *_CommandBuffer(void) {
.name = "CommandBuffer",
.superclass = _Object(),
.instanceSize = sizeof(CommandBuffer),
.interfaceOffset = offsetof(CommandBuffer, interface),
.interfaceSize = sizeof(CommandBufferInterface),
.initialize = initialize,
});
Expand Down
4 changes: 2 additions & 2 deletions Sources/ObjectivelyGPU/CommandBuffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,10 @@ struct CommandBuffer {
Object object;

/**
* @brief The interface.
* @brief The interface type.
* @protected
*/
CommandBufferInterface *interface;
CommandBufferInterface *interface[0];

/**
* @brief The underlying SDL command buffer.
Expand Down
1 change: 0 additions & 1 deletion Sources/ObjectivelyGPU/ComputePass.c
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,6 @@ Class *_ComputePass(void) {
.name = "ComputePass",
.superclass = _Object(),
.instanceSize = sizeof(ComputePass),
.interfaceOffset = offsetof(ComputePass, interface),
.interfaceSize = sizeof(ComputePassInterface),
.initialize = initialize,
});
Expand Down
4 changes: 2 additions & 2 deletions Sources/ObjectivelyGPU/ComputePass.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@ struct ComputePass {
Object object;

/**
* @brief The interface.
* @brief The interface type.
* @protected
*/
ComputePassInterface *interface;
ComputePassInterface *interface[0];

/**
* @brief The CommandBuffer this pass was begun from.
Expand Down
1 change: 0 additions & 1 deletion Sources/ObjectivelyGPU/ComputePipeline.c
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ Class *_ComputePipeline(void) {
.name = "ComputePipeline",
.superclass = _Object(),
.instanceSize = sizeof(ComputePipeline),
.interfaceOffset = offsetof(ComputePipeline, interface),
.interfaceSize = sizeof(ComputePipelineInterface),
.initialize = initialize,
});
Expand Down
4 changes: 2 additions & 2 deletions Sources/ObjectivelyGPU/ComputePipeline.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ struct ComputePipeline {
Object object;

/**
* @brief The interface.
* @brief The interface type.
* @protected
*/
ComputePipelineInterface *interface;
ComputePipelineInterface *interface[0];

/**
* @brief The underlying SDL compute pipeline.
Expand Down
1 change: 0 additions & 1 deletion Sources/ObjectivelyGPU/CopyPass.c
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,6 @@ Class *_CopyPass(void) {
.name = "CopyPass",
.superclass = _Object(),
.instanceSize = sizeof(CopyPass),
.interfaceOffset = offsetof(CopyPass, interface),
.interfaceSize = sizeof(CopyPassInterface),
.initialize = initialize,
});
Expand Down
4 changes: 2 additions & 2 deletions Sources/ObjectivelyGPU/CopyPass.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@ struct CopyPass {
Object object;

/**
* @brief The interface.
* @brief The interface type.
* @protected
*/
CopyPassInterface *interface;
CopyPassInterface *interface[0];

/**
* @brief The CommandBuffer this pass was begun from.
Expand Down
1 change: 0 additions & 1 deletion Sources/ObjectivelyGPU/Fence.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ Class *_Fence(void) {
.name = "Fence",
.superclass = _Object(),
.instanceSize = sizeof(Fence),
.interfaceOffset = offsetof(Fence, interface),
.interfaceSize = sizeof(FenceInterface),
.initialize = initialize,
});
Expand Down
4 changes: 2 additions & 2 deletions Sources/ObjectivelyGPU/Fence.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@ struct Fence {
Object object;

/**
* @brief The interface.
* @brief The interface type.
* @protected
*/
FenceInterface *interface;
FenceInterface *interface[0];

/**
* @brief The underlying SDL fence.
Expand Down
1 change: 0 additions & 1 deletion Sources/ObjectivelyGPU/Framebuffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,6 @@ Class *_Framebuffer(void) {
.name = "Framebuffer",
.superclass = _Object(),
.instanceSize = sizeof(Framebuffer),
.interfaceOffset = offsetof(Framebuffer, interface),
.interfaceSize = sizeof(FramebufferInterface),
.initialize = initialize,
});
Expand Down
4 changes: 2 additions & 2 deletions Sources/ObjectivelyGPU/Framebuffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -182,10 +182,10 @@ struct Framebuffer {
Object object;

/**
* @brief The interface.
* @brief The interface type.
* @protected
*/
FramebufferInterface *interface;
FramebufferInterface *interface[0];

/**
* @brief The owning RenderDevice, used for texture allocation and dealloc.
Expand Down
1 change: 0 additions & 1 deletion Sources/ObjectivelyGPU/GraphicsPipeline.c
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,6 @@ Class *_GraphicsPipeline(void) {
.name = "GraphicsPipeline",
.superclass = _Object(),
.instanceSize = sizeof(GraphicsPipeline),
.interfaceOffset = offsetof(GraphicsPipeline, interface),
.interfaceSize = sizeof(GraphicsPipelineInterface),
.initialize = initialize,
});
Expand Down
4 changes: 2 additions & 2 deletions Sources/ObjectivelyGPU/GraphicsPipeline.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ struct GraphicsPipeline {
Object object;

/**
* @brief The interface.
* @brief The interface type.
* @protected
*/
GraphicsPipelineInterface *interface;
GraphicsPipelineInterface *interface[0];

/**
* @brief The underlying SDL graphics pipeline.
Expand Down
2 changes: 1 addition & 1 deletion Sources/ObjectivelyGPU/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ libObjectivelyGPU_la_CFLAGS = \
$(SDL3_CFLAGS)

libObjectivelyGPU_la_LDFLAGS = \
-version-info 1:0:0 \
-release @RELEASE_VERSION@ \
$(HOST_LDFLAGS)

libObjectivelyGPU_la_LIBADD = \
Expand Down
1 change: 0 additions & 1 deletion Sources/ObjectivelyGPU/QueryPool.c
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ Class *_QueryPool(void) {
.name = "QueryPool",
.superclass = _Object(),
.instanceSize = sizeof(QueryPool),
.interfaceOffset = offsetof(QueryPool, interface),
.interfaceSize = sizeof(QueryPoolInterface),
.initialize = initialize,
});
Expand Down
4 changes: 2 additions & 2 deletions Sources/ObjectivelyGPU/QueryPool.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,10 @@ struct QueryPool {
Object object;

/**
* @brief The interface.
* @brief The interface type.
* @protected
*/
QueryPoolInterface *interface;
QueryPoolInterface *interface[0];

/**
* @brief The underlying SDL query pool, or `NULL` if occlusion queries are
Expand Down
1 change: 0 additions & 1 deletion Sources/ObjectivelyGPU/RenderDevice.c
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,6 @@ Class *_RenderDevice(void) {
.name = "RenderDevice",
.superclass = _Object(),
.instanceSize = sizeof(RenderDevice),
.interfaceOffset = offsetof(RenderDevice, interface),
.interfaceSize = sizeof(RenderDeviceInterface),
.initialize = initialize,
});
Expand Down
4 changes: 2 additions & 2 deletions Sources/ObjectivelyGPU/RenderDevice.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,10 @@ struct RenderDevice {
Object object;

/**
* @brief The interface.
* @brief The interface type.
* @protected
*/
RenderDeviceInterface *interface;
RenderDeviceInterface *interface[0];

/**
* @brief The `SDL_GPUDevice`.
Expand Down
1 change: 0 additions & 1 deletion Sources/ObjectivelyGPU/RenderPass.c
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,6 @@ Class *_RenderPass(void) {
.name = "RenderPass",
.superclass = _Object(),
.instanceSize = sizeof(RenderPass),
.interfaceOffset = offsetof(RenderPass, interface),
.interfaceSize = sizeof(RenderPassInterface),
.initialize = initialize,
});
Expand Down
4 changes: 2 additions & 2 deletions Sources/ObjectivelyGPU/RenderPass.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,10 @@ struct RenderPass {
Object object;

/**
* @brief The interface.
* @brief The interface type.
* @protected
*/
RenderPassInterface *interface;
RenderPassInterface *interface[0];

/**
* @brief The current blend constants.
Expand Down
1 change: 0 additions & 1 deletion Sources/ObjectivelyGPU/Sampler.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ Class *_Sampler(void) {
.name = "Sampler",
.superclass = _Object(),
.instanceSize = sizeof(Sampler),
.interfaceOffset = offsetof(Sampler, interface),
.interfaceSize = sizeof(SamplerInterface),
.initialize = initialize,
});
Expand Down
4 changes: 2 additions & 2 deletions Sources/ObjectivelyGPU/Sampler.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ struct Sampler {
Object object;

/**
* @brief The interface.
* @brief The interface type.
* @protected
*/
SamplerInterface *interface;
SamplerInterface *interface[0];

/**
* @brief The underlying SDL sampler.
Expand Down
1 change: 0 additions & 1 deletion Sources/ObjectivelyGPU/Shader.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ Class *_Shader(void) {
.name = "Shader",
.superclass = _Object(),
.instanceSize = sizeof(Shader),
.interfaceOffset = offsetof(Shader, interface),
.interfaceSize = sizeof(ShaderInterface),
.initialize = initialize,
});
Expand Down
4 changes: 2 additions & 2 deletions Sources/ObjectivelyGPU/Shader.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ struct Shader {
Object object;

/**
* @brief The interface.
* @brief The interface type.
* @protected
*/
ShaderInterface *interface;
ShaderInterface *interface[0];

/**
* @brief The RenderDevice that owns this shader.
Expand Down
1 change: 0 additions & 1 deletion Sources/ObjectivelyGPU/Texture.c
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,6 @@ Class *_Texture(void) {
.name = "Texture",
.superclass = _Object(),
.instanceSize = sizeof(Texture),
.interfaceOffset = offsetof(Texture, interface),
.interfaceSize = sizeof(TextureInterface),
.initialize = initialize,
});
Expand Down
4 changes: 2 additions & 2 deletions Sources/ObjectivelyGPU/Texture.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@ struct Texture {
Object object;

/**
* @brief The interface.
* @brief The interface type.
* @protected
*/
TextureInterface *interface;
TextureInterface *interface[0];

/**
* @brief The underlying SDL texture.
Expand Down
1 change: 0 additions & 1 deletion Sources/ObjectivelyGPU/TransferBuffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ Class *_TransferBuffer(void) {
.name = "TransferBuffer",
.superclass = _Object(),
.instanceSize = sizeof(TransferBuffer),
.interfaceOffset = offsetof(TransferBuffer, interface),
.interfaceSize = sizeof(TransferBufferInterface),
.initialize = initialize,
});
Expand Down
4 changes: 2 additions & 2 deletions Sources/ObjectivelyGPU/TransferBuffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@ struct TransferBuffer {
Object object;

/**
* @brief The interface.
* @brief The interface type.
* @protected
*/
TransferBufferInterface *interface;
TransferBufferInterface *interface[0];

/**
* @brief The underlying SDL transfer buffer.
Expand Down
5 changes: 3 additions & 2 deletions configure.ac
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
AC_PREREQ(2.69)

AC_INIT([ObjectivelyGPU], [1.0.0], [jay@jaydolan.com])
AC_INIT([ObjectivelyGPU], [2.2.0], [jay@jaydolan.com])
AC_SUBST([RELEASE_VERSION], [m4_bpatsubst(AC_PACKAGE_VERSION, [\.[0-9]*$], [])])

AC_CONFIG_HEADERS([Sources/ObjectivelyGPU/Config.h])
AC_CONFIG_MACRO_DIR([m4])
Expand Down Expand Up @@ -58,7 +59,7 @@ AM_CONDITIONAL([MINGW], [test "x$HOST_NAME" = "xMINGW"])
AM_CONDITIONAL([LINUX], [test "x$HOST_NAME" = "xLINUX"])

PKG_CHECK_MODULES([CHECK], [check >= 0.9.4])
PKG_CHECK_MODULES([OBJECTIVELY], [Objectively >= 2.0.0])
PKG_CHECK_MODULES([OBJECTIVELY], [Objectively >= 2.2.0])
PKG_CHECK_MODULES([SDL3], [sdl3 >= 3.2.0])

AC_CONFIG_FILES([
Expand Down
Loading