Jolt Physics
A multi core friendly Game Physics Engine
Loading...
Searching...
No Matches
WrapShaderEnd.h
Go to the documentation of this file.
1// Jolt Physics Library (https://github.com/jrouwe/JoltPhysics)
2// SPDX-FileCopyrightText: 2026 Jorrit Rouwe
3// SPDX-License-Identifier: MIT
4
6
7 // WrapShaderBindings.h should have been included followed by the shader bindings
8
9 default:
10 JPH_ASSERT(false, "Buffer cannot be bound to this shader");
11 break;
12 }
13 }
14
16 static ShaderWrapper * sCreate()
17 {
18 return new JPH_SHADER_CLASS_NAME(JPH_SHADER_NAME)();
19 }
20};
21
22} // ShaderWrappers
23
25
26// Stop clang from complaining that the register function is missing a prototype
28
31{
32 inComputeSystem->RegisterShader(JPH_TO_STRING(JPH_SHADER_NAME), ShaderWrappers::JPH_SHADER_CLASS_NAME(JPH_SHADER_NAME)::sCreate);
33}
34
35#undef JPH_SHADER_OVERRIDE_MACROS
36#undef JPH_SHADER_GENERATE_WRAPPER
37#undef JPH_SHADER_CONSTANT
38#undef JPH_SHADER_CONSTANTS_BEGIN
39#undef JPH_SHADER_CONSTANTS_MEMBER
40#undef JPH_SHADER_CONSTANTS_END
41#undef JPH_SHADER_BUFFER
42#undef JPH_SHADER_RW_BUFFER
43#undef JPH_SHADER_BIND_BEGIN
44#undef JPH_SHADER_BIND_END
45#undef JPH_SHADER_BIND_BUFFER
46#undef JPH_SHADER_BIND_RW_BUFFER
47#undef JPH_SHADER_FUNCTION_BEGIN
48#undef JPH_SHADER_PARAM_THREAD_ID
49#undef JPH_SHADER_FUNCTION_END
50#undef JPH_SHADER_STRUCT_BEGIN
51#undef JPH_SHADER_STRUCT_MEMBER
52#undef JPH_SHADER_STRUCT_END
53#undef JPH_TO_STRING
54#undef JPH_TO_STRING2
55#undef JPH_SHADER_CLASS_NAME
56#undef JPH_SHADER_CLASS_NAME2
57#undef JPH_OUT
58#undef JPH_IN_OUT
59#undef JPH_SHADER_NAME
60
#define JPH_SHADER_WRAPPER_FUNCTION(sys, name)
Definition ComputeSystemCPU.h:39
#define JPH_NAMESPACE_END
Definition Core.h:425
#define JPH_SHADER_NAME
Definition HairWrapper.cpp:9
#define JPH_ASSERT(...)
Definition IssueReporting.h:33
Wraps a compute shader to allow calling it from C++.
Definition ShaderWrapper.h:13