forked from cocos/cocos-engine
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'gfx-ray-query' into v3.8.5-pipeline
- Loading branch information
Showing
95 changed files
with
4,811 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
editor/assets/chunks/builtin/uniforms/cc-acceleration-structure.chunk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
|
||
#pragma extension([GL_EXT_ray_query, __VERSION__ >= 460, enable]) | ||
|
||
#pragma builtin(global) | ||
layout(set = 0, binding = 8) uniform accelerationStructureEXT cc_topLevelAS; | ||
|
34 changes: 34 additions & 0 deletions
34
editor/assets/chunks/builtin/uniforms/cc-scene-shading-data.chunk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#pragma extension([GL_EXT_scalar_block_layout, __VERSION__ >= 450, enable]) | ||
#pragma extension([GL_EXT_buffer_reference2, __VERSION__ >= 450, require]) | ||
#pragma extension([GL_EXT_shader_explicit_arithmetic_types,__VERSION__>=450,enable]) | ||
|
||
layout(buffer_reference, scalar) readonly buffer IndicesBuffer32 { ivec3 i[]; }; | ||
layout(buffer_reference, scalar) readonly buffer IndicesBuffer16 { i16vec3 i[]; }; | ||
|
||
struct VertexAttributes { | ||
vec3 position; | ||
vec3 normal; | ||
vec2 texCoord; | ||
vec4 tangent; | ||
}; | ||
|
||
layout(buffer_reference, scalar) readonly buffer VertexAttributesBuffer { VertexAttributes v[];}; | ||
|
||
struct GeomDesc{ | ||
uint64_t indexAddress; | ||
uint64_t vertexAddress; | ||
}; | ||
|
||
struct MeshDesc | ||
{ | ||
uint16_t subMeshGeometryOffset; | ||
uint16_t subMeshMaterialOffset; | ||
uint16_t subMeshCount; | ||
uint16_t padding; | ||
}; | ||
|
||
#pragma builtin(global) | ||
layout(set = 0, binding = 9) readonly buffer cc_scene_geometry_desc {GeomDesc geomDescs[];}; | ||
|
||
#pragma builtin(global) | ||
layout(set = 0, binding = 10) readonly buffer cc_scene_instance_desc {MeshDesc instanceDescs[];}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.