Jolt Physics
A multi core friendly Game Physics Engine
Loading...
Searching...
No Matches
TestComputeBindings.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, cTestComputeGroupSize, 64)
8
9JPH_SHADER_CONSTANTS_BEGIN(TestComputeContext, gContext)
11 JPH_SHADER_CONSTANTS_MEMBER(JPH_uint, UIntValue) // Test that this value packs correctly with the float3 preceding it
15JPH_SHADER_CONSTANTS_END(TestComputeContext)
16
17JPH_SHADER_BIND_BEGIN(JPH_TestCompute)
19 JPH_SHADER_BIND_BUFFER(JPH_uint, gOptionalData)
21JPH_SHADER_BIND_END(JPH_TestCompute)
#define JPH_SHADER_CONSTANT(type, name, value)
Definition ShaderCore.h:52
uint JPH_uint
Definition ShaderCore.h:42
#define JPH_SHADER_CONSTANTS_BEGIN(type, name)
Definition ShaderCore.h:54
#define JPH_SHADER_BIND_END(name)
Definition ShaderCore.h:68
#define JPH_SHADER_BIND_BUFFER(type, name)
Definition ShaderCore.h:69
float3 JPH_float3
Definition ShaderCore.h:40
#define JPH_SHADER_BIND_BEGIN(name)
Definition ShaderCore.h:67
#define JPH_SHADER_CONSTANTS_END(type)
Definition ShaderCore.h:56
#define JPH_SHADER_CONSTANTS_MEMBER(type, name)
Definition ShaderCore.h:55
#define JPH_SHADER_BIND_RW_BUFFER(type, name)
Definition ShaderCore.h:70