Rework API graphique Vulkan - EnTT pour ECS + Chargement modèle 3D assimp + SDL3 pour events input et fenetre + mesh texture camera transform ok + attention tous les assets nouveaus ne sont pas commités et il y a du code test en dur dans scene addentity + restructuration globale
This commit is contained in:
43
lib/All/SPIRV-Reflect/tests/raytrace/rayquery_init_gs.hlsl
Normal file
43
lib/All/SPIRV-Reflect/tests/raytrace/rayquery_init_gs.hlsl
Normal file
@@ -0,0 +1,43 @@
|
||||
// RUN: %dxc -T gs_6_5 -E main -fspv-target-env=vulkan1.2
|
||||
// CHECK: OpCapability RayQueryKHR
|
||||
// CHECK: OpExtension "SPV_KHR_ray_query
|
||||
|
||||
struct Out
|
||||
{
|
||||
float4 pos : SV_Position;
|
||||
};
|
||||
|
||||
struct Empty{};
|
||||
|
||||
RaytracingAccelerationStructure AccelerationStructure : register(t0);
|
||||
RayDesc MakeRayDesc()
|
||||
{
|
||||
RayDesc desc;
|
||||
desc.Origin = float3(0,0,0);
|
||||
desc.Direction = float3(1,0,0);
|
||||
desc.TMin = 0.0f;
|
||||
desc.TMax = 9999.0;
|
||||
return desc;
|
||||
}
|
||||
void doInitialize(RayQuery<RAY_FLAG_FORCE_OPAQUE> query, RayDesc ray)
|
||||
{
|
||||
query.TraceRayInline(AccelerationStructure,RAY_FLAG_FORCE_NON_OPAQUE,0xFF,ray);
|
||||
}
|
||||
|
||||
[maxvertexcount(3)]
|
||||
void main(line Empty e[4], inout PointStream<Out> OutputStream0)
|
||||
{
|
||||
RayQuery<RAY_FLAG_FORCE_OPAQUE> q;
|
||||
RayDesc ray = MakeRayDesc();
|
||||
// CHECK: [[accel:%\d+]] = OpLoad %accelerationStructureNV %AccelerationStructure
|
||||
// CHECK: OpRayQueryInitializeKHR [[rayquery]] [[accel]] %uint_1 %uint_255 {{%\d+}} %float_0 {{%\d+}} %float_9999
|
||||
|
||||
q.TraceRayInline(AccelerationStructure,RAY_FLAG_FORCE_OPAQUE, 0xFF, ray);
|
||||
// CHECK: OpRayQueryInitializeKHR [[rayquery]] [[accel]] %uint_3 %uint_255 {{%\d+}} %float_0 {{%\d+}} %float_9999
|
||||
doInitialize(q, ray);
|
||||
|
||||
Out output = (Out)0;
|
||||
|
||||
OutputStream0.Append(output);
|
||||
OutputStream0.RestartStrip();
|
||||
}
|
||||
Reference in New Issue
Block a user