Add GDSOFTCLASS to deeper inheritors of Object

This commit is contained in:
Edward Moulsdale
2025-09-24 19:15:46 +01:00
parent 1ce3101fbc
commit e366471fdc
51 changed files with 154 additions and 18 deletions

View File

@ -54,6 +54,8 @@
#endif
class PhysicsServer2DWrapMT : public PhysicsServer2D {
GDSOFTCLASS(PhysicsServer2DWrapMT, PhysicsServer2D);
mutable PhysicsServer2D *physics_server_2d = nullptr;
mutable CommandQueueMT command_queue;

View File

@ -55,6 +55,8 @@
#endif
class PhysicsServer3DWrapMT : public PhysicsServer3D {
GDSOFTCLASS(PhysicsServer3DWrapMT, PhysicsServer3D);
mutable PhysicsServer3D *physics_server_3d = nullptr;
mutable CommandQueueMT command_queue;

View File

@ -86,6 +86,8 @@ struct VersatileResourceTemplate {
};
class RenderingDeviceDriver : public RenderingDeviceCommons {
GDSOFTCLASS(RenderingDeviceDriver, RenderingDeviceCommons);
public:
struct ID {
uint64_t id = 0;

View File

@ -42,6 +42,8 @@
#include "servers/server_wrap_mt_common.h"
class RenderingServerDefault : public RenderingServer {
GDSOFTCLASS(RenderingServerDefault, RenderingServer);
enum {
MAX_INSTANCE_CULL = 8192,
MAX_INSTANCE_LIGHTS = 4,

View File

@ -150,6 +150,8 @@ public:
};
class RenderingShaderContainerFormat : public RenderingDeviceCommons {
GDSOFTCLASS(RenderingShaderContainerFormat, RenderingDeviceCommons);
public:
virtual Ref<RenderingShaderContainer> create_container() const = 0;
virtual ShaderLanguageVersion get_shader_language_version() const = 0;