Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
godotengine
GitHub Repository: godotengine/godot
Path: blob/master/thirdparty/metal-cpp/MetalFX/MTLFXPrivate.hpp
21344 views
1
//-------------------------------------------------------------------------------------------------------------------------------------------------------------
2
//
3
// MetalFX/MTLFXPrivate.hpp
4
//
5
// Copyright 2020-2024 Apple Inc.
6
//
7
// Licensed under the Apache License, Version 2.0 (the "License");
8
// you may not use this file except in compliance with the License.
9
// You may obtain a copy of the License at
10
//
11
// http://www.apache.org/licenses/LICENSE-2.0
12
//
13
// Unless required by applicable law or agreed to in writing, software
14
// distributed under the License is distributed on an "AS IS" BASIS,
15
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
// See the License for the specific language governing permissions and
17
// limitations under the License.
18
//
19
//-------------------------------------------------------------------------------------------------------------------------------------------------------------
20
21
#pragma once
22
23
//-------------------------------------------------------------------------------------------------------------------------------------------------------------
24
25
#include "MTLFXDefines.hpp"
26
27
#include <objc/runtime.h>
28
29
//-------------------------------------------------------------------------------------------------------------------------------------------------------------
30
31
#define _MTLFX_PRIVATE_CLS( symbol ) ( MTLFX::Private::Class::s_k##symbol )
32
#define _MTLFX_PRIVATE_SEL( accessor ) ( MTLFX::Private::Selector::s_k##accessor )
33
34
//-------------------------------------------------------------------------------------------------------------------------------------------------------------
35
36
#if defined( MTLFX_PRIVATE_IMPLEMENTATION )
37
38
#if defined( METALCPP_SYMBOL_VISIBILITY_HIDDEN )
39
#define _MTLFX_PRIVATE_VISIBILITY __attribute__( ( visibility("hidden" ) ) )
40
#else
41
#define _MTLFX_PRIVATE_VISIBILITY __attribute__( ( visibility("default" ) ) )
42
#endif // METALCPP_SYMBOL_VISIBILITY_HIDDEN
43
44
#define _MTLFX_PRIVATE_IMPORT __attribute__( ( weak_import ) )
45
46
#ifdef __OBJC__
47
#define _MTLFX_PRIVATE_OBJC_LOOKUP_CLASS( symbol ) ( ( __bridge void* ) objc_lookUpClass( #symbol ) )
48
#define _MTLFX_PRIVATE_OBJC_GET_PROTOCOL( symbol ) ( ( __bridge void* ) objc_getProtocol( #symbol ) )
49
#else
50
#define _MTLFX_PRIVATE_OBJC_LOOKUP_CLASS( symbol ) objc_lookUpClass(#symbol)
51
#define _MTLFX_PRIVATE_OBJC_GET_PROTOCOL( symbol ) objc_getProtocol(#symbol)
52
#endif // __OBJC__
53
54
#define _MTLFX_PRIVATE_DEF_CLS( symbol ) void* s_k##symbol _MTLFX_PRIVATE_VISIBILITY = _MTLFX_PRIVATE_OBJC_LOOKUP_CLASS( symbol )
55
#define _MTLFX_PRIVATE_DEF_PRO( symbol ) void* s_k##symbol _MTLFX_PRIVATE_VISIBILITY = _MTLFX_PRIVATE_OBJC_GET_PROTOCOL( symbol )
56
#define _MTLFX_PRIVATE_DEF_SEL( accessor, symbol ) SEL s_k##accessor _MTLFX_PRIVATE_VISIBILITY = sel_registerName( symbol )
57
58
#include <dlfcn.h>
59
#define MTLFX_DEF_FUNC( name, signature ) using Fn##name = signature; \
60
Fn##name name = reinterpret_cast< Fn##name >( dlsym( RTLD_DEFAULT, #name ) )
61
62
namespace MTLFX::Private
63
{
64
template <typename _Type>
65
66
inline _Type const LoadSymbol(const char* pSymbol)
67
{
68
const _Type* pAddress = static_cast<_Type*>(dlsym(RTLD_DEFAULT, pSymbol));
69
70
return pAddress ? *pAddress : nullptr;
71
}
72
} // MTLFX::Private
73
74
#if defined(__MAC_26_0) || defined(__IPHONE_26_0) || defined(__TVOS_26_0)
75
76
#define _MTLFX_PRIVATE_DEF_STR( type, symbol ) \
77
_MTLFX_EXTERN type const MTLFX##symbol _MTLFX_PRIVATE_IMPORT; \
78
type const MTLFX::symbol = ( nullptr != &MTLFX##symbol ) ? MTLFX##ssymbol : nullptr
79
80
#define _MTLFX_PRIVATE_DEF_CONST( type, symbol ) \
81
_MTLFX_EXTERN type const MTLFX##ssymbol _MTLFX_PRIVATE_IMPORT; \
82
type const MTLFX::symbol = (nullptr != &MTLFX##ssymbol) ? MTLFX##ssymbol : nullptr
83
84
#define _MTLFX_PRIVATE_DEF_WEAK_CONST( type, symbol ) \
85
_MTLFX_EXTERN type const MTLFX##ssymbol; \
86
type const MTLFX::symbol = Private::LoadSymbol< type >( "MTLFX" #symbol )
87
88
#else
89
90
#define _MTLFX_PRIVATE_DEF_STR( type, symbol ) \
91
_MTLFX_EXTERN type const MTLFX##ssymbol; \
92
type const MTLFX::symbol = Private::LoadSymbol< type >( "MTLFX" #symbol )
93
94
#define _MTLFX_PRIVATE_DEF_CONST( type, symbol ) \
95
_MTLFX_EXTERN type const MTLFX##ssymbol; \
96
type const MTLFX::symbol = Private::LoadSymbol< type >( "MTLFX" #symbol )
97
98
#define _MTLFX_PRIVATE_DEF_WEAK_CONST( type, symbol ) _MTLFX_PRIVATE_DEF_CONST( type, symbol )
99
100
#endif
101
102
#else
103
104
#define _MTLFX_PRIVATE_DEF_CLS( symbol ) extern void* s_k##symbol
105
#define _MTLFX_PRIVATE_DEF_PRO( symbol ) extern void* s_k##symbol
106
#define _MTLFX_PRIVATE_DEF_SEL( accessor, symbol ) extern SEL s_k##accessor
107
#define _MTLFX_PRIVATE_DEF_STR( type, symbol ) extern type const MTLFX::symbol
108
#define _MTLFX_PRIVATE_DEF_CONST( type, symbol ) extern type const MTLFX::symbol
109
#define _MTLFX_PRIVATE_DEF_WEAK_CONST( type, symbol ) extern type const MTLFX::symbol
110
111
#endif // MTLFX_PRIVATE_IMPLEMENTATION
112
113
//-------------------------------------------------------------------------------------------------------------------------------------------------------------
114
115
namespace MTLFX
116
{
117
namespace Private
118
{
119
namespace Class
120
{
121
_MTLFX_PRIVATE_DEF_CLS( MTLFXSpatialScalerDescriptor );
122
_MTLFX_PRIVATE_DEF_CLS( MTLFXTemporalScalerDescriptor );
123
_MTLFX_PRIVATE_DEF_CLS( MTLFXFrameInterpolatorDescriptor );
124
_MTLFX_PRIVATE_DEF_CLS( MTLFXTemporalDenoisedScalerDescriptor );
125
126
_MTLFX_PRIVATE_DEF_CLS( MTL4FXSpatialScalerDescriptor );
127
_MTLFX_PRIVATE_DEF_CLS( MTL4FXTemporalScalerDescriptor );
128
_MTLFX_PRIVATE_DEF_CLS( MTL4FXFrameInterpolatorDescriptor );
129
_MTLFX_PRIVATE_DEF_CLS( MTL4FXTemporalDenoisedScalerDescriptor );
130
} // Class
131
} // Private
132
} // MTLFX
133
134
//-------------------------------------------------------------------------------------------------------------------------------------------------------------
135
136
namespace MTLFX
137
{
138
namespace Private
139
{
140
namespace Protocol
141
{
142
_MTLFX_PRIVATE_DEF_PRO( MTLFXSpatialScaler );
143
_MTLFX_PRIVATE_DEF_PRO( MTLFXTemporalScaler );
144
} // Protocol
145
} // Private
146
} // MTLFX
147
148
//-------------------------------------------------------------------------------------------------------------------------------------------------------------
149
150
namespace MTLFX
151
{
152
namespace Private
153
{
154
namespace Selector
155
{
156
_MTLFX_PRIVATE_DEF_SEL( aspectRatio,
157
"aspectRatio" );
158
_MTLFX_PRIVATE_DEF_SEL( colorProcessingMode,
159
"colorProcessingMode" );
160
_MTLFX_PRIVATE_DEF_SEL( colorTexture,
161
"colorTexture" );
162
_MTLFX_PRIVATE_DEF_SEL( colorTextureFormat,
163
"colorTextureFormat" );
164
_MTLFX_PRIVATE_DEF_SEL( colorTextureUsage,
165
"colorTextureUsage" );
166
_MTLFX_PRIVATE_DEF_SEL( deltaTime,
167
"deltaTime" );
168
_MTLFX_PRIVATE_DEF_SEL( denoiseStrengthMaskTexture,
169
"denoiseStrengthMaskTexture" );
170
_MTLFX_PRIVATE_DEF_SEL( denoiseStrengthMaskTextureFormat,
171
"denoiseStrengthMaskTextureFormat" );
172
_MTLFX_PRIVATE_DEF_SEL( denoiseStrengthMaskTextureUsage,
173
"denoiseStrengthMaskTextureUsage" );
174
_MTLFX_PRIVATE_DEF_SEL( depthTexture,
175
"depthTexture" );
176
_MTLFX_PRIVATE_DEF_SEL( depthTextureFormat,
177
"depthTextureFormat" );
178
_MTLFX_PRIVATE_DEF_SEL( depthTextureUsage,
179
"depthTextureUsage" );
180
_MTLFX_PRIVATE_DEF_SEL( diffuseAlbedoTexture,
181
"diffuseAlbedoTexture" );
182
_MTLFX_PRIVATE_DEF_SEL( diffuseAlbedoTextureFormat,
183
"diffuseAlbedoTextureFormat" );
184
_MTLFX_PRIVATE_DEF_SEL( diffuseAlbedoTextureUsage,
185
"diffuseAlbedoTextureUsage" );
186
_MTLFX_PRIVATE_DEF_SEL( encodeToCommandBuffer_,
187
"encodeToCommandBuffer:" );
188
_MTLFX_PRIVATE_DEF_SEL( exposureTexture,
189
"exposureTexture" );
190
_MTLFX_PRIVATE_DEF_SEL( farPlane,
191
"farPlane" );
192
_MTLFX_PRIVATE_DEF_SEL( fence,
193
"fence" );
194
_MTLFX_PRIVATE_DEF_SEL( fieldOfView,
195
"fieldOfView" );
196
_MTLFX_PRIVATE_DEF_SEL( height,
197
"height" );
198
_MTLFX_PRIVATE_DEF_SEL( inputContentHeight,
199
"inputContentHeight" );
200
_MTLFX_PRIVATE_DEF_SEL( inputContentMaxScale,
201
"inputContentMaxScale" );
202
_MTLFX_PRIVATE_DEF_SEL( inputContentMinScale,
203
"inputContentMinScale" );
204
_MTLFX_PRIVATE_DEF_SEL( inputContentWidth,
205
"inputContentWidth" );
206
_MTLFX_PRIVATE_DEF_SEL( inputHeight,
207
"inputHeight" );
208
_MTLFX_PRIVATE_DEF_SEL( inputWidth,
209
"inputWidth" );
210
_MTLFX_PRIVATE_DEF_SEL( isAutoExposureEnabled,
211
"isAutoExposureEnabled" );
212
_MTLFX_PRIVATE_DEF_SEL( isDenoiseStrengthMaskTextureEnabled,
213
"isDenoiseStrengthMaskTextureEnabled" );
214
_MTLFX_PRIVATE_DEF_SEL( isDepthReversed,
215
"isDepthReversed" );
216
_MTLFX_PRIVATE_DEF_SEL( isInputContentPropertiesEnabled,
217
"isInputContentPropertiesEnabled" );
218
_MTLFX_PRIVATE_DEF_SEL( isTransparencyOverlayTextureEnabled,
219
"isTransparencyOverlayTextureEnabled" );
220
_MTLFX_PRIVATE_DEF_SEL( isReactiveMaskTextureEnabled,
221
"isReactiveMaskTextureEnabled" );
222
_MTLFX_PRIVATE_DEF_SEL( isSpecularHitDistanceTextureEnabled,
223
"isSpecularHitDistanceTextureEnabled" );
224
_MTLFX_PRIVATE_DEF_SEL( isUITextureComposited,
225
"isUITextureComposited" );
226
_MTLFX_PRIVATE_DEF_SEL( jitterOffsetX,
227
"jitterOffsetX" );
228
_MTLFX_PRIVATE_DEF_SEL( jitterOffsetY,
229
"jitterOffsetY" );
230
_MTLFX_PRIVATE_DEF_SEL( maskTexture,
231
"maskTexture" );
232
_MTLFX_PRIVATE_DEF_SEL( maskTextureFormat,
233
"maskTextureFormat" );
234
_MTLFX_PRIVATE_DEF_SEL( maskTextureUsage,
235
"maskTextureUsage" );
236
_MTLFX_PRIVATE_DEF_SEL( motionTexture,
237
"motionTexture" );
238
_MTLFX_PRIVATE_DEF_SEL( motionTextureFormat,
239
"motionTextureFormat" );
240
_MTLFX_PRIVATE_DEF_SEL( motionTextureUsage,
241
"motionTextureUsage" );
242
_MTLFX_PRIVATE_DEF_SEL( motionVectorScaleX,
243
"motionVectorScaleX" );
244
_MTLFX_PRIVATE_DEF_SEL( motionVectorScaleY,
245
"motionVectorScaleY" );
246
_MTLFX_PRIVATE_DEF_SEL( nearPlane,
247
"nearPlane" );
248
_MTLFX_PRIVATE_DEF_SEL( newFrameInterpolatorWithDevice_,
249
"newFrameInterpolatorWithDevice:" );
250
_MTLFX_PRIVATE_DEF_SEL( newFrameInterpolatorWithDevice_compiler_,
251
"newFrameInterpolatorWithDevice:compiler:" );
252
_MTLFX_PRIVATE_DEF_SEL( newTemporalDenoisedScalerWithDevice_,
253
"newTemporalDenoisedScalerWithDevice:" );
254
_MTLFX_PRIVATE_DEF_SEL( newTemporalDenoisedScalerWithDevice_compiler_,
255
"newTemporalDenoisedScalerWithDevice:compiler:" );
256
_MTLFX_PRIVATE_DEF_SEL( newSpatialScalerWithDevice_,
257
"newSpatialScalerWithDevice:" );
258
_MTLFX_PRIVATE_DEF_SEL( newSpatialScalerWithDevice_compiler_,
259
"newSpatialScalerWithDevice:compiler:" );
260
_MTLFX_PRIVATE_DEF_SEL( newTemporalScalerWithDevice_,
261
"newTemporalScalerWithDevice:" );
262
_MTLFX_PRIVATE_DEF_SEL( newTemporalScalerWithDevice_compiler_,
263
"newTemporalScalerWithDevice:compiler:" );
264
_MTLFX_PRIVATE_DEF_SEL( normalTexture,
265
"normalTexture" );
266
_MTLFX_PRIVATE_DEF_SEL( normalTextureFormat,
267
"normalTextureFormat" );
268
_MTLFX_PRIVATE_DEF_SEL( normalTextureUsage,
269
"normalTextureUsage" );
270
_MTLFX_PRIVATE_DEF_SEL( outputHeight,
271
"outputHeight" );
272
_MTLFX_PRIVATE_DEF_SEL( outputTexture,
273
"outputTexture" );
274
_MTLFX_PRIVATE_DEF_SEL( outputTextureFormat,
275
"outputTextureFormat" );
276
_MTLFX_PRIVATE_DEF_SEL( outputTextureUsage,
277
"outputTextureUsage" );
278
_MTLFX_PRIVATE_DEF_SEL( outputWidth,
279
"outputWidth" );
280
_MTLFX_PRIVATE_DEF_SEL( preExposure,
281
"preExposure" );
282
_MTLFX_PRIVATE_DEF_SEL( transparencyOverlayTextureFormat,
283
"transparencyOverlayTextureFormat" );
284
_MTLFX_PRIVATE_DEF_SEL( transparencyOverlayTextureUsage,
285
"transparencyOverlayTextureUsage" );
286
_MTLFX_PRIVATE_DEF_SEL( prevColorTexture,
287
"prevColorTexture" );
288
_MTLFX_PRIVATE_DEF_SEL( reactiveMaskTextureFormat,
289
"reactiveMaskTextureFormat" );
290
_MTLFX_PRIVATE_DEF_SEL( reactiveTextureUsage,
291
"reactiveTextureUsage" );
292
_MTLFX_PRIVATE_DEF_SEL( reactiveMaskTexture,
293
"reactiveMaskTexture" );
294
_MTLFX_PRIVATE_DEF_SEL( reset,
295
"reset" );
296
_MTLFX_PRIVATE_DEF_SEL( requiresSynchronousInitialization,
297
"requiresSynchronousInitialization" );
298
_MTLFX_PRIVATE_DEF_SEL( roughnessTextureFormat,
299
"roughnessTextureFormat" );
300
_MTLFX_PRIVATE_DEF_SEL( roughnessTextureUsage,
301
"roughnessTextureUsage" );
302
_MTLFX_PRIVATE_DEF_SEL( scaler,
303
"scaler" );
304
_MTLFX_PRIVATE_DEF_SEL( scaler4,
305
"scaler4" );
306
_MTLFX_PRIVATE_DEF_SEL( setAspectRatio_,
307
"setAspectRatio:" );
308
_MTLFX_PRIVATE_DEF_SEL( setAutoExposureEnabled_,
309
"setAutoExposureEnabled:" );
310
_MTLFX_PRIVATE_DEF_SEL( setColorProcessingMode_,
311
"setColorProcessingMode:" );
312
_MTLFX_PRIVATE_DEF_SEL( setColorTexture_,
313
"setColorTexture:" );
314
_MTLFX_PRIVATE_DEF_SEL( setColorTextureFormat_,
315
"setColorTextureFormat:" );
316
_MTLFX_PRIVATE_DEF_SEL( setDeltaTime_,
317
"setDeltaTime:" );
318
_MTLFX_PRIVATE_DEF_SEL( setDenoiseStrengthMaskTexture_,
319
"setDenoiseStrengthMaskTexture:" );
320
_MTLFX_PRIVATE_DEF_SEL( setDenoiseStrengthMaskTextureEnabled_,
321
"setDenoiseStrengthMaskTextureEnabled:" );
322
_MTLFX_PRIVATE_DEF_SEL( setDenoiseStrengthMaskTextureFormat_,
323
"setDenoiseStrengthMaskTextureFormat:" );
324
_MTLFX_PRIVATE_DEF_SEL( setDepthInverted_,
325
"setDepthInverted:" );
326
_MTLFX_PRIVATE_DEF_SEL( setDepthReversed_,
327
"setDepthReversed:" );
328
_MTLFX_PRIVATE_DEF_SEL( setDepthTexture_,
329
"setDepthTexture:" );
330
_MTLFX_PRIVATE_DEF_SEL( setDepthTextureFormat_,
331
"setDepthTextureFormat:" );
332
_MTLFX_PRIVATE_DEF_SEL( setDiffuseAlbedoTexture_,
333
"setDiffuseAlbedoTexture:" );
334
_MTLFX_PRIVATE_DEF_SEL( setDiffuseAlbedoTextureFormat_,
335
"setDiffuseAlbedoTextureFormat:" );
336
_MTLFX_PRIVATE_DEF_SEL( setExposureTexture_,
337
"setExposureTexture:" );
338
_MTLFX_PRIVATE_DEF_SEL( setFarPlane_,
339
"setFarPlane:" );
340
_MTLFX_PRIVATE_DEF_SEL( setFence_,
341
"setFence:" );
342
_MTLFX_PRIVATE_DEF_SEL( setFieldOfView_,
343
"setFieldOfView:" );
344
_MTLFX_PRIVATE_DEF_SEL( setHeight_,
345
"setHeight:" );
346
_MTLFX_PRIVATE_DEF_SEL( setInputContentHeight_,
347
"setInputContentHeight:" );
348
_MTLFX_PRIVATE_DEF_SEL( setInputContentMaxScale_,
349
"setInputContentMaxScale:" );
350
_MTLFX_PRIVATE_DEF_SEL( setInputContentMinScale_,
351
"setInputContentMinScale:" );
352
_MTLFX_PRIVATE_DEF_SEL( setInputContentPropertiesEnabled_,
353
"setInputContentPropertiesEnabled:" );
354
_MTLFX_PRIVATE_DEF_SEL( setInputContentWidth_,
355
"setInputContentWidth:" );
356
_MTLFX_PRIVATE_DEF_SEL( setInputHeight_,
357
"setInputHeight:" );
358
_MTLFX_PRIVATE_DEF_SEL( setInputWidth_,
359
"setInputWidth:" );
360
_MTLFX_PRIVATE_DEF_SEL( setIsUITextureComposited_,
361
"setIsUITextureComposited:" );
362
_MTLFX_PRIVATE_DEF_SEL( setJitterOffsetX_,
363
"setJitterOffsetX:" );
364
_MTLFX_PRIVATE_DEF_SEL( setJitterOffsetY_,
365
"setJitterOffsetY:" );
366
_MTLFX_PRIVATE_DEF_SEL( setNearPlane_,
367
"setNearPlane:" );
368
_MTLFX_PRIVATE_DEF_SEL( setMaskTexture_,
369
"setMaskTexture:" );
370
_MTLFX_PRIVATE_DEF_SEL( setMaskTextureFormat_,
371
"setMaskTextureFormat:" );
372
_MTLFX_PRIVATE_DEF_SEL( setMotionTexture_,
373
"setMotionTexture:" );
374
_MTLFX_PRIVATE_DEF_SEL( setMotionTextureFormat_,
375
"setMotionTextureFormat:" );
376
_MTLFX_PRIVATE_DEF_SEL( setMotionVectorScaleX_,
377
"setMotionVectorScaleX:" );
378
_MTLFX_PRIVATE_DEF_SEL( setMotionVectorScaleY_,
379
"setMotionVectorScaleY:" );
380
_MTLFX_PRIVATE_DEF_SEL( setNormalTexture_,
381
"setNormalTexture:" );
382
_MTLFX_PRIVATE_DEF_SEL( setNormalTextureFormat_,
383
"setNormalTextureFormat:" );
384
_MTLFX_PRIVATE_DEF_SEL( setOutputHeight_,
385
"setOutputHeight:" );
386
_MTLFX_PRIVATE_DEF_SEL( setOutputTexture_,
387
"setOutputTexture:" );
388
_MTLFX_PRIVATE_DEF_SEL( setOutputTextureFormat_,
389
"setOutputTextureFormat:" );
390
_MTLFX_PRIVATE_DEF_SEL( setOutputWidth_,
391
"setOutputWidth:" );
392
_MTLFX_PRIVATE_DEF_SEL( transparencyOverlayTexture,
393
"transparencyOverlayTexture" );
394
_MTLFX_PRIVATE_DEF_SEL( setTransparencyOverlayTexture_,
395
"setTransparencyOverlayTexture:" );
396
_MTLFX_PRIVATE_DEF_SEL( setTransparencyOverlayTextureEnabled_,
397
"setTransparencyOverlayTextureEnabled:" );
398
_MTLFX_PRIVATE_DEF_SEL( setPreExposure_,
399
"setPreExposure:" );
400
_MTLFX_PRIVATE_DEF_SEL( setTransparencyOverlayTextureFormat_,
401
"setTransparencyOverlayTextureFormat:" );
402
_MTLFX_PRIVATE_DEF_SEL( setPrevColorTexture_,
403
"setPrevColorTexture:" );
404
_MTLFX_PRIVATE_DEF_SEL( setReactiveMaskTexture_,
405
"setReactiveMaskTexture:" );
406
_MTLFX_PRIVATE_DEF_SEL( setReactiveMaskTextureEnabled_,
407
"setReactiveMaskTextureEnabled:" );
408
_MTLFX_PRIVATE_DEF_SEL( setReactiveMaskTextureFormat_,
409
"setReactiveMaskTextureFormat:" );
410
_MTLFX_PRIVATE_DEF_SEL( setRequiresSynchronousInitialization_,
411
"setRequiresSynchronousInitialization:" );
412
_MTLFX_PRIVATE_DEF_SEL( setReset_,
413
"setReset:" );
414
_MTLFX_PRIVATE_DEF_SEL( roughnessTexture,
415
"roughnessTexture" );
416
_MTLFX_PRIVATE_DEF_SEL( setRoughnessTexture_,
417
"setRoughnessTexture:" );
418
_MTLFX_PRIVATE_DEF_SEL( setRoughnessTextureFormat_,
419
"setRoughnessTextureFormat:" );
420
_MTLFX_PRIVATE_DEF_SEL( setScaler_,
421
"setScaler:" );
422
_MTLFX_PRIVATE_DEF_SEL( setShouldResetHistory_,
423
"setShouldResetHistory:" );
424
_MTLFX_PRIVATE_DEF_SEL( specularHitDistanceTexture,
425
"specularHitDistanceTexture" );
426
_MTLFX_PRIVATE_DEF_SEL( setSpecularHitDistanceTexture_,
427
"setSpecularHitDistanceTexture:" );
428
_MTLFX_PRIVATE_DEF_SEL( setSpecularHitDistanceTextureEnabled_,
429
"setSpecularHitDistanceTextureEnabled:" );
430
_MTLFX_PRIVATE_DEF_SEL( setSpecularAlbedoTexture_,
431
"setSpecularAlbedoTexture:" );
432
_MTLFX_PRIVATE_DEF_SEL( setSpecularAlbedoTextureFormat_,
433
"setSpecularAlbedoTextureFormat:" );
434
_MTLFX_PRIVATE_DEF_SEL( setSpecularHitDistanceTextureFormat_,
435
"setSpecularHitDistanceTextureFormat:" );
436
_MTLFX_PRIVATE_DEF_SEL( setUITexture_,
437
"setUITexture:" );
438
_MTLFX_PRIVATE_DEF_SEL( setUITextureFormat_,
439
"setUITextureFormat:" );
440
_MTLFX_PRIVATE_DEF_SEL( setViewToClipMatrix_,
441
"setViewToClipMatrix:" );
442
_MTLFX_PRIVATE_DEF_SEL( setWidth_,
443
"setWidth:" );
444
_MTLFX_PRIVATE_DEF_SEL( setWorldToViewMatrix_,
445
"setWorldToViewMatrix:" );
446
_MTLFX_PRIVATE_DEF_SEL( shouldResetHistory,
447
"shouldResetHistory" );
448
_MTLFX_PRIVATE_DEF_SEL( specularAlbedoTexture,
449
"specularAlbedoTexture" );
450
_MTLFX_PRIVATE_DEF_SEL( specularAlbedoTextureFormat,
451
"specularAlbedoTextureFormat" );
452
_MTLFX_PRIVATE_DEF_SEL( specularAlbedoTextureUsage,
453
"specularAlbedoTextureUsage" );
454
_MTLFX_PRIVATE_DEF_SEL( specularHitDistanceTextureFormat,
455
"specularHitDistanceTextureFormat" );
456
_MTLFX_PRIVATE_DEF_SEL( specularHitDistanceTextureUsage,
457
"specularHitDistanceTextureUsage" );
458
_MTLFX_PRIVATE_DEF_SEL( supportedInputContentMaxScaleForDevice_,
459
"supportedInputContentMaxScaleForDevice:" );
460
_MTLFX_PRIVATE_DEF_SEL( supportedInputContentMinScaleForDevice_,
461
"supportedInputContentMinScaleForDevice:" );
462
_MTLFX_PRIVATE_DEF_SEL( supportsDevice_,
463
"supportsDevice:" );
464
_MTLFX_PRIVATE_DEF_SEL( supportsMetal4FX_,
465
"supportsMetal4FX:" );
466
_MTLFX_PRIVATE_DEF_SEL( uiTexture,
467
"uiTexture" );
468
_MTLFX_PRIVATE_DEF_SEL( uiTextureFormat,
469
"uiTextureFormat" );
470
_MTLFX_PRIVATE_DEF_SEL( uiTextureUsage,
471
"uiTextureFormat" );
472
_MTLFX_PRIVATE_DEF_SEL( viewToClipMatrix,
473
"viewToClipMatrix" );
474
_MTLFX_PRIVATE_DEF_SEL( width,
475
"width" );
476
_MTLFX_PRIVATE_DEF_SEL( worldToViewMatrix,
477
"worldToViewMatrix" );
478
} // Selector
479
} // Private
480
} // MTLFX
481
482
//-------------------------------------------------------------------------------------------------------------------------------------------------------------
483
484