Skip to content

Commit c47efb4

Browse files
committed
Fix build issues
1 parent 869ba4d commit c47efb4

4 files changed

Lines changed: 16 additions & 2 deletions

File tree

src/Layers/xrRender/DetailManager_Compute.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ struct DetailInstanceGPU
2121
Fvector position; // World position (12 bytes)
2222
float scale; // Uniform scale (4 bytes)
2323
float rotation_y; // Y-axis rotation in radians (4 bytes)
24-
float padding0[3]; // Alignment padding (12 bytes)
24+
float padding0[7]; // Alignment padding (28 bytes)
2525

2626
// Rendering data (32 bytes)
2727
float c_hemi; // Hemispherical lighting [0..1] (4 bytes)

src/Layers/xrRender/SH_Atomic.h

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,14 @@ struct ECORE_API SCS : public xr_resource_named
113113
R_constant_table constants;
114114
~SCS();
115115
};
116-
typedef resptr_core<SCS, resptr_base<SCS>> ref_cs;
116+
117+
struct ECORE_API resptrcode_cs : public resptr_base<SCS>
118+
{
119+
void create(LPCSTR name);
120+
void destroy() { _set(nullptr); }
121+
};
122+
123+
typedef resptr_core<SCS, resptrcode_cs> ref_cs;
117124

118125
#if defined(USE_OGL)
119126
struct ECORE_API SPP : public xr_resource_named

src/Layers/xrRender/Shader.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@ void resptrcode_geom::create(const VertexElement* decl, VertexBufferHandle vb, I
3939
_set(RImplementation.Resources->CreateGeom(decl, vb, ib));
4040
}
4141

42+
//////////////////////////////////////////////////////////////////////////
43+
void resptrcode_cs::create(LPCSTR name)
44+
{
45+
_set(RImplementation.Resources->_CreateCS(name));
46+
}
4247

4348
//////////////////////////////////////////////////////////////////////
4449
// Construction/Destruction

src/Layers/xrRenderDX11/dx11DetailManager_Compute.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
namespace xray::render::RENDER_NAMESPACE
88
{
99

10+
extern float r_ssaDISCARD;
11+
1012
// ===========================
1113
// Constructor / Destructor
1214
// ===========================

0 commit comments

Comments
 (0)