Jolt Physics
A multi core friendly Game Physics Engine
Loading...
Searching...
No Matches
TestCompute2Bindings.h
Go to the documentation of this file.
1// Jolt Physics Library (https://github.com/jrouwe/JoltPhysics)
2// SPDX-FileCopyrightText: 2025 Jorrit Rouwe
3// SPDX-License-Identifier: MIT
4
5#include "ShaderCore.h"
6
7JPH_SHADER_CONSTANT(int, cTestCompute2GroupSize, 1)
8
9JPH_SHADER_STRUCT_BEGIN(TestCompute2Input)
12 JPH_SHADER_STRUCT_MEMBER(JPH_uint, CompressedVec3)
13 JPH_SHADER_STRUCT_MEMBER(JPH_uint, CompressedQuat)
14JPH_SHADER_STRUCT_END(TestComputeContext)
15
16JPH_SHADER_STRUCT_BEGIN(TestCompute2Output)
19 JPH_SHADER_STRUCT_MEMBER(JPH_float3, DecompressedVec3)
20 JPH_SHADER_STRUCT_MEMBER(JPH_Quat, DecompressedQuat)
21JPH_SHADER_STRUCT_END(TestCompute2Output)
22
23JPH_SHADER_BIND_BEGIN(JPH_TestCompute2)
24 JPH_SHADER_BIND_BUFFER(TestCompute2Input, gInput)
25 JPH_SHADER_BIND_RW_BUFFER(TestCompute2Output, gOutput)
26JPH_SHADER_BIND_END(JPH_TestCompute2)
#define JPH_SHADER_CONSTANT(type, name, value)
Definition ShaderCore.h:54
uint JPH_uint
Definition ShaderCore.h:44
#define JPH_SHADER_STRUCT_MEMBER(type, name)
Definition ShaderCore.h:78
#define JPH_SHADER_STRUCT_BEGIN(name)
Definition ShaderCore.h:77
#define JPH_SHADER_BIND_END(name)
Definition ShaderCore.h:70
float4 JPH_Mat44[4]
Definition ShaderCore.h:52
#define JPH_SHADER_STRUCT_END(name)
Definition ShaderCore.h:79
#define JPH_SHADER_BIND_BUFFER(type, name)
Definition ShaderCore.h:71
float3 JPH_float3
Definition ShaderCore.h:42
#define JPH_SHADER_BIND_BEGIN(name)
Definition ShaderCore.h:69
float4 JPH_Quat
Definition ShaderCore.h:50
#define JPH_SHADER_BIND_RW_BUFFER(type, name)
Definition ShaderCore.h:72