mirror of
https://bitbucket.org/mfeemster/fractorium.git
synced 2025-01-21 21:20:07 -05:00
Fix warning about unused CLStrings
This commit is contained in:
parent
2909af2408
commit
f922b1731d
@ -14,7 +14,7 @@ namespace EmberCLns
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// OpenCL equivalent of Palette::RgbToHsv().
|
/// OpenCL equivalent of Palette::RgbToHsv().
|
||||||
/// </summary>
|
/// </summary>
|
||||||
static const char* RgbToHsvFunctionString =
|
static constexpr char RgbToHsvFunctionString[] =
|
||||||
//rgb 0 - 1,
|
//rgb 0 - 1,
|
||||||
//h 0 - 6, s 0 - 1, v 0 - 1
|
//h 0 - 6, s 0 - 1, v 0 - 1
|
||||||
"static inline void RgbToHsv(real4_bucket* rgb, real4_bucket* hsv)\n"
|
"static inline void RgbToHsv(real4_bucket* rgb, real4_bucket* hsv)\n"
|
||||||
@ -84,7 +84,7 @@ static const char* RgbToHsvFunctionString =
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// OpenCL equivalent of Palette::HsvToRgb().
|
/// OpenCL equivalent of Palette::HsvToRgb().
|
||||||
/// </summary>
|
/// </summary>
|
||||||
static const char* HsvToRgbFunctionString =
|
static constexpr char HsvToRgbFunctionString[] =
|
||||||
//h 0 - 6, s 0 - 1, v 0 - 1
|
//h 0 - 6, s 0 - 1, v 0 - 1
|
||||||
//rgb 0 - 1
|
//rgb 0 - 1
|
||||||
"static inline void HsvToRgb(real4_bucket* hsv, real4_bucket* rgb)\n"
|
"static inline void HsvToRgb(real4_bucket* hsv, real4_bucket* rgb)\n"
|
||||||
@ -120,7 +120,7 @@ static const char* HsvToRgbFunctionString =
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// OpenCL equivalent of Palette::CalcAlpha().
|
/// OpenCL equivalent of Palette::CalcAlpha().
|
||||||
/// </summary>
|
/// </summary>
|
||||||
static const char* CalcAlphaFunctionString =
|
static constexpr char CalcAlphaFunctionString[] =
|
||||||
"static inline real_t CalcAlpha(real_bucket_t density, real_bucket_t gamma, real_bucket_t linrange)\n"//Not the slightest clue what this is doing.//DOC
|
"static inline real_t CalcAlpha(real_bucket_t density, real_bucket_t gamma, real_bucket_t linrange)\n"//Not the slightest clue what this is doing.//DOC
|
||||||
"{\n"
|
"{\n"
|
||||||
" real_bucket_t frac, alpha, funcval = pow(linrange, gamma);\n"
|
" real_bucket_t frac, alpha, funcval = pow(linrange, gamma);\n"
|
||||||
@ -148,7 +148,7 @@ static const char* CalcAlphaFunctionString =
|
|||||||
/// Only use float here instead of real_t because the output will be passed to write_imagef()
|
/// Only use float here instead of real_t because the output will be passed to write_imagef()
|
||||||
/// during final accumulation, which only takes floats.
|
/// during final accumulation, which only takes floats.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
static const char* CurveAdjustFunctionString =
|
static constexpr char CurveAdjustFunctionString[] =
|
||||||
"static inline void CurveAdjust(__global real4reals_bucket* csa, float* a, uint index)\n"
|
"static inline void CurveAdjust(__global real4reals_bucket* csa, float* a, uint index)\n"
|
||||||
"{\n"
|
"{\n"
|
||||||
" uint tempIndex = (uint)clamp(*a * CURVES_LENGTH_M1, 0.0f, CURVES_LENGTH_M1);\n"
|
" uint tempIndex = (uint)clamp(*a * CURVES_LENGTH_M1, 0.0f, CURVES_LENGTH_M1);\n"
|
||||||
@ -163,7 +163,7 @@ static const char* CurveAdjustFunctionString =
|
|||||||
/// random numbers in OpenCL, instead of ISAAC which was used
|
/// random numbers in OpenCL, instead of ISAAC which was used
|
||||||
/// for CPU rendering.
|
/// for CPU rendering.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
static const char* RandFunctionString =
|
static constexpr char RandFunctionString[] =
|
||||||
"enum { MWC64X_A = 4294883355u };\n\n"
|
"enum { MWC64X_A = 4294883355u };\n\n"
|
||||||
"inline uint MwcNext(uint2* s)\n"
|
"inline uint MwcNext(uint2* s)\n"
|
||||||
"{\n"
|
"{\n"
|
||||||
@ -219,7 +219,7 @@ static const char* RandFunctionString =
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// OpenCL equivalent Renderer::AddToAccum().
|
/// OpenCL equivalent Renderer::AddToAccum().
|
||||||
/// </summary>
|
/// </summary>
|
||||||
static const char* AddToAccumWithCheckFunctionString =
|
static constexpr char AddToAccumWithCheckFunctionString[] =
|
||||||
"inline bool AccumCheck(int superRasW, int superRasH, int i, int ii, int j, int jj)\n"
|
"inline bool AccumCheck(int superRasW, int superRasH, int i, int ii, int j, int jj)\n"
|
||||||
"{\n"
|
"{\n"
|
||||||
" return (j + jj >= 0 && j + jj < superRasH && i + ii >= 0 && i + ii < superRasW);\n"
|
" return (j + jj >= 0 && j + jj < superRasH && i + ii >= 0 && i + ii < superRasW);\n"
|
||||||
@ -230,7 +230,7 @@ static const char* AddToAccumWithCheckFunctionString =
|
|||||||
/// OpenCL equivalent various CarToRas member functions.
|
/// OpenCL equivalent various CarToRas member functions.
|
||||||
/// Normaly would subtract m_RasLlX and m_RasLlY, but they were negated in RendererCL before being passed in, so they could be used with fma().
|
/// Normaly would subtract m_RasLlX and m_RasLlY, but they were negated in RendererCL before being passed in, so they could be used with fma().
|
||||||
/// </summary>
|
/// </summary>
|
||||||
static const char* CarToRasFunctionString =
|
static constexpr char CarToRasFunctionString[] =
|
||||||
"inline void CarToRasConvertPointToSingle(__constant CarToRasCL* carToRas, Point* point, uint* singleBufferIndex)\n"
|
"inline void CarToRasConvertPointToSingle(__constant CarToRasCL* carToRas, Point* point, uint* singleBufferIndex)\n"
|
||||||
"{\n"
|
"{\n"
|
||||||
#ifdef USEFMA
|
#ifdef USEFMA
|
||||||
|
@ -154,7 +154,7 @@ struct ALIGN PointCL
|
|||||||
/// It might seem better to use float4, however 2D palettes and even 3D coordinates may eventually
|
/// It might seem better to use float4, however 2D palettes and even 3D coordinates may eventually
|
||||||
/// be supported, which will make it more than 4 members.
|
/// be supported, which will make it more than 4 members.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
static const char* PointCLStructString =
|
static constexpr char PointCLStructString[] =
|
||||||
"typedef struct __attribute__ " ALIGN_CL " _Point\n"
|
"typedef struct __attribute__ " ALIGN_CL " _Point\n"
|
||||||
"{\n"
|
"{\n"
|
||||||
" real_t m_X;\n"
|
" real_t m_X;\n"
|
||||||
@ -183,7 +183,7 @@ struct ALIGN XformCL
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// The xform structure used to iterate in OpenCL.
|
/// The xform structure used to iterate in OpenCL.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
static const char* XformCLStructString =
|
static constexpr char XformCLStructString[] =
|
||||||
"typedef struct __attribute__ " ALIGN_CL " _XformCL\n"
|
"typedef struct __attribute__ " ALIGN_CL " _XformCL\n"
|
||||||
"{\n"
|
"{\n"
|
||||||
" real_t m_A, m_B, m_C, m_D, m_E, m_F;\n"
|
" real_t m_A, m_B, m_C, m_D, m_E, m_F;\n"
|
||||||
@ -220,7 +220,7 @@ struct ALIGN EmberCL
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// The ember structure used to iterate in OpenCL.
|
/// The ember structure used to iterate in OpenCL.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
static const char* EmberCLStructString =
|
static constexpr char EmberCLStructString[] =
|
||||||
"typedef struct __attribute__ " ALIGN_CL " _EmberCL\n"
|
"typedef struct __attribute__ " ALIGN_CL " _EmberCL\n"
|
||||||
"{\n"
|
"{\n"
|
||||||
" real_t m_RandPointRange;\n"
|
" real_t m_RandPointRange;\n"
|
||||||
@ -264,7 +264,7 @@ struct ALIGN CarToRasCL
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// The cartesian to raster structure used to iterate in OpenCL.
|
/// The cartesian to raster structure used to iterate in OpenCL.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
static const char* CarToRasCLStructString =
|
static constexpr char CarToRasCLStructString[] =
|
||||||
"typedef struct __attribute__ " ALIGN_CL " _CarToRasCL\n"
|
"typedef struct __attribute__ " ALIGN_CL " _CarToRasCL\n"
|
||||||
"{\n"
|
"{\n"
|
||||||
" real_t m_PixPerImageUnitW, m_RasLlX;\n"
|
" real_t m_PixPerImageUnitW, m_RasLlX;\n"
|
||||||
@ -299,7 +299,7 @@ struct ALIGN DensityFilterCL
|
|||||||
/// The density filtering structure used to iterate in OpenCL.
|
/// The density filtering structure used to iterate in OpenCL.
|
||||||
/// Note that the actual filter buffer is held elsewhere.
|
/// Note that the actual filter buffer is held elsewhere.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
static const char* DensityFilterCLStructString =
|
static constexpr char DensityFilterCLStructString[] =
|
||||||
"typedef struct __attribute__ " ALIGN_CL " _DensityFilterCL\n"
|
"typedef struct __attribute__ " ALIGN_CL " _DensityFilterCL\n"
|
||||||
"{\n"
|
"{\n"
|
||||||
" real_bucket_t m_Curve;\n"
|
" real_bucket_t m_Curve;\n"
|
||||||
@ -341,7 +341,7 @@ struct ALIGN SpatialFilterCL
|
|||||||
/// The spatial filtering structure used to iterate in OpenCL.
|
/// The spatial filtering structure used to iterate in OpenCL.
|
||||||
/// Note that the actual filter buffer is held elsewhere.
|
/// Note that the actual filter buffer is held elsewhere.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
static const char* SpatialFilterCLStructString =
|
static constexpr char SpatialFilterCLStructString[] =
|
||||||
"typedef struct __attribute__ ((aligned (16))) _SpatialFilterCL\n"
|
"typedef struct __attribute__ ((aligned (16))) _SpatialFilterCL\n"
|
||||||
"{\n"
|
"{\n"
|
||||||
" uint m_SuperRasW;\n"
|
" uint m_SuperRasW;\n"
|
||||||
@ -365,7 +365,7 @@ static const char* SpatialFilterCLStructString =
|
|||||||
/// their members as a buffer is not natively supported.
|
/// their members as a buffer is not natively supported.
|
||||||
/// Declaring them in a union with a buffer resolves this problem.
|
/// Declaring them in a union with a buffer resolves this problem.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
static const char* UnionCLStructString =
|
static constexpr char UnionCLStructString[] =
|
||||||
"typedef union\n"
|
"typedef union\n"
|
||||||
"{\n"
|
"{\n"
|
||||||
" uchar3 m_Uchar3;\n"
|
" uchar3 m_Uchar3;\n"
|
||||||
|
Loading…
Reference in New Issue
Block a user