depth_linear_sampler
#
@group (2 )
@binding (2 )
var
depth_linear_sampler:
sampler
depth_nearest_sampler
#
@group (2 )
@binding (3 )
var
depth_nearest_sampler:
sampler
HybridRootFinder
#
struct
HybridRootFinder
{
linear_march_exponent:
f32
,
}
DistanceWithPenetration
#
struct
DistanceWithPenetration
{
}
DepthRaymarchDistanceFn
#
struct
DepthRaymarchDistanceFn
{
march_behind_surfaces:
bool
,
}
DepthRayMarchResult
#
struct
DepthRayMarchResult
{
hit_penetration_frac:
f32
,
}
DepthRayMarch
#
struct
DepthRayMarch
{
linear_march_exponent:
f32
,
march_behind_surfaces:
bool
,
depth_thickness_linear_z:
f32
,
}
depth_texel_clamped
#
fn
depth_texel_clamped
(
)
->
f32
depth_sample_nearest_clamped
#
fn
depth_sample_nearest_clamped
(
,
)
->
f32
depth_sample_bilinear_clamped
#
fn
depth_sample_bilinear_clamped
(
,
)
->
f32
depth_sample_linear
#
fn
depth_sample_linear
(
,
)
->
f32
depth_sample_nearest
#
fn
depth_sample_nearest
(
,
)
->
f32
hybrid_root_finder_new_with_linear_steps
#
hybrid_root_finder_find_root
#
fn
hybrid_root_finder_find_root
(
,
,
,
,
,
,
)
->
bool
depth_raymarch_distance_fn_evaluate
#
depth_ray_march_new_from_depth
#
depth_ray_march_to_cs_dir_impl
#
fn
depth_ray_march_to_cs_dir_impl
(
,
,
)
depth_ray_march_from_cs
#
fn
depth_ray_march_from_cs
(
,
)
depth_ray_march_to_cs
#
fn
depth_ray_march_to_cs
(
,
)
depth_ray_march_to_cs_dir
#
fn
depth_ray_march_to_cs_dir
(
,
)
depth_ray_march_to_ws
#
fn
depth_ray_march_to_ws
(
,
)
depth_ray_march_to_ws_dir
#
fn
depth_ray_march_to_ws_dir
(
,
)
depth_ray_march_march
#
Contents
March from a clip-space position (w = 1)