Jolt Physics
A multi core friendly Game Physics Engine
Loading...
Searching...
No Matches
ShaderWrapper.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
5#pragma once
6
8
9namespace HLSLToCPP { struct uint3; }
10
13{
14public:
16 virtual ~ShaderWrapper() = default;
17
19 virtual void Bind(const char *inName, void *inData, uint64 inSize) = 0;
20
22 virtual void Main(const HLSLToCPP::uint3 &inThreadID) = 0;
23};
24
std::uint64_t uint64
Definition Core.h:504
#define JPH_NAMESPACE_END
Definition Core.h:425
#define JPH_NAMESPACE_BEGIN
Definition Core.h:419
Wraps a compute shader to allow calling it from C++.
Definition ShaderWrapper.h:13
virtual ~ShaderWrapper()=default
Destructor.
virtual void Bind(const char *inName, void *inData, uint64 inSize)=0
Bind buffer to shader.
virtual void Main(const HLSLToCPP::uint3 &inThreadID)=0
Execute a single shader thread.
Definition HLSLToCPP.h:11
Definition HLSLToCPP.h:235