Ci.
This commit is contained in:
parent
08ce3a524d
commit
be3010cafe
@ -1122,9 +1122,10 @@ impl FromWorld for GpuPreprocessingSupport {
|
||||
// `max_compute_*` limits to zero, so we arbitrarily pick one as a canary.
|
||||
device.limits().max_compute_workgroup_storage_size != 0;
|
||||
|
||||
let downlevel_support = adapter.get_downlevel_capabilities().flags.contains(
|
||||
DownlevelFlags::COMPUTE_SHADERS
|
||||
);
|
||||
let downlevel_support = adapter
|
||||
.get_downlevel_capabilities()
|
||||
.flags
|
||||
.contains(DownlevelFlags::COMPUTE_SHADERS);
|
||||
|
||||
let max_supported_mode = if device.limits().max_compute_workgroup_size_x == 0
|
||||
|| is_non_supported_android_device(adapter)
|
||||
|
||||
@ -404,7 +404,7 @@ impl ShaderCache {
|
||||
render_device.create_and_validate_shader_module(module_descriptor)
|
||||
}
|
||||
// SAFETY: we are interfacing with shader code, which may contain undefined behavior,
|
||||
// such as indexing out of bounds.
|
||||
// such as indexing out of bounds.
|
||||
// The checks required are prohibitively expensive and a poor default for game engines.
|
||||
ValidateShader::Disabled => unsafe {
|
||||
render_device.create_shader_module(module_descriptor)
|
||||
|
||||
@ -322,7 +322,8 @@ pub async fn initialize_renderer(
|
||||
max_non_sampler_bindings: limits
|
||||
.max_non_sampler_bindings
|
||||
.min(constrained_limits.max_non_sampler_bindings),
|
||||
max_blas_primitive_count: limits.max_blas_primitive_count
|
||||
max_blas_primitive_count: limits
|
||||
.max_blas_primitive_count
|
||||
.min(constrained_limits.max_blas_primitive_count),
|
||||
max_blas_geometry_count: limits
|
||||
.max_blas_geometry_count
|
||||
|
||||
Loading…
Reference in New Issue
Block a user