|
Blender V5.3
|
Namespaces | |
| namespace | denoise |
Classes | |
| struct | RayGenerate |
| struct | TileClassify |
| struct | TileCompact |
Functions | |
| void | generate_rays (RayGenerate &srt, const Uniform &uni, const Sampling &sampling, const UtilityTexture &util_tx, const draw::View &views, const gbuffer::Reader &reader, const uint3 group_id, const uint3 local_id) |
| float | ray_roughness_factor (RayTraceData raytrace, float roughness) |
| void | tile_classify (TileClassify &srt, const Uniform &uni, const gbuffer::Reader &reader, const uint3 group_id, const uint3 global_id, const uint local_index) |
| void | tile_compact (TileCompact &srt, const uint3 global_id) |
| void eevee::raytracing::generate_rays | ( | RayGenerate & | srt, |
| const Uniform & | uni, | ||
| const Sampling & | sampling, | ||
| const UtilityTexture & | util_tx, | ||
| const draw::View & | views, | ||
| const gbuffer::Reader & | reader, | ||
| const uint3 | group_id, | ||
| const uint3 | local_id ) |
Generate Ray direction along with other data that are then used by the next pass to trace the rays.
Definition at line 109 of file eevee_ray_generate.bsl.hh.
References CLOSURE_NONE_ID, BsdfSample::direction, fract(), generate_rays(), imageStore(), imageStoreFast, local_invocation_id, max, noise(), P, BsdfSample::pdf, ViewMatrices::point_screen_to_world(), eevee::ray_generate_direction(), resource_table, textureSize(), unpackUvec2x16(), UTIL_BLUE_NOISE_LAYER, V, work_group_id, and ViewMatrices::world_incident_vector().
Referenced by generate_rays().
Definition at line 28 of file eevee_ray_tile.bsl.hh.
References ray_roughness_factor(), and saturate.
Referenced by ray_roughness_factor(), and tile_classify().
| void eevee::raytracing::tile_classify | ( | TileClassify & | srt, |
| const Uniform & | uni, | ||
| const gbuffer::Reader & | reader, | ||
| const uint3 | group_id, | ||
| const uint3 | global_id, | ||
| const uint | local_index ) |
This pass load Gbuffer data and output a mask of tiles to process. This mask is then processed by the compaction phase.
Definition at line 38 of file eevee_ray_tile.bsl.hh.
References barrier(), closure_apparent_roughness_get(), CLOSURE_NONE_ID, global_invocation_id, imageStoreFast, in_texture_range, local_invocation_index, ray_roughness_factor(), resource_table, tile_classify(), and work_group_id.
Referenced by tile_classify().
| void eevee::raytracing::tile_compact | ( | TileCompact & | srt, |
| const uint3 | global_id ) |
This pass scans the tile mask generated by the classify step and output indirect dispatch args.
Dispatched as one thread for each trace resolution tile.
Definition at line 121 of file eevee_ray_tile.bsl.hh.
References all(), atomicAdd(), atomicExchange(), equal, global_invocation_id, imageLoad(), in_image_range, packUvec2x16(), resource_table, tile, tile_compact(), and tile_index.
Referenced by tile_compact().