mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 17:10:47 +00:00
Fix compilation on linux
This commit is contained in:
@@ -47,10 +47,6 @@ typedef void(RENDERDOC_CC *pRENDERDOC_FreeArrayMem)(void *mem);
|
||||
|
||||
extern "C" RENDERDOC_API void *RENDERDOC_CC RENDERDOC_AllocArrayMem(uint64_t sz);
|
||||
typedef void *(RENDERDOC_CC *pRENDERDOC_AllocArrayMem)(uint64_t sz);
|
||||
|
||||
// similarly these need to be pre-declared for use in rdhalf
|
||||
extern "C" RENDERDOC_API float RENDERDOC_CC RENDERDOC_HalfToFloat(uint16_t half);
|
||||
extern "C" RENDERDOC_API uint16_t RENDERDOC_CC RENDERDOC_FloatToHalf(float flt);
|
||||
#endif
|
||||
|
||||
// declare base types and stringise interface
|
||||
|
||||
@@ -109,6 +109,12 @@ struct BindpointIndex
|
||||
|
||||
DECLARE_REFLECTION_STRUCT(BindpointIndex);
|
||||
|
||||
#if !defined(SWIG)
|
||||
// similarly these need to be pre-declared for use in rdhalf
|
||||
extern "C" RENDERDOC_API float RENDERDOC_CC RENDERDOC_HalfToFloat(uint16_t half);
|
||||
extern "C" RENDERDOC_API uint16_t RENDERDOC_CC RENDERDOC_FloatToHalf(float flt);
|
||||
#endif
|
||||
|
||||
struct rdhalf
|
||||
{
|
||||
#if !defined(SWIG)
|
||||
|
||||
@@ -26,6 +26,7 @@
|
||||
#define SERIALISER_IMPL
|
||||
|
||||
#include "serialiser.h"
|
||||
#include "api/replay/renderdoc_replay.h"
|
||||
#include "core/core.h"
|
||||
#include "strings/string_utils.h"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user