mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-21 22:33:49 +00:00
style: use concat!(…)
in DOWNLEVEL_*_MESSAGE
(#6305)
This commit is contained in:
parent
841e7c8857
commit
2f81ae156c
@ -128,16 +128,26 @@ pub fn hal_label(opt: Option<&str>, flags: wgt::InstanceFlags) -> Option<&str> {
|
|||||||
opt
|
opt
|
||||||
}
|
}
|
||||||
|
|
||||||
const DOWNLEVEL_WARNING_MESSAGE: &str = "The underlying API or device in use does not \
|
const DOWNLEVEL_WARNING_MESSAGE: &str = concat!(
|
||||||
support enough features to be a fully compliant implementation of WebGPU. A subset of the features can still be used. \
|
"The underlying API or device in use does not ",
|
||||||
If you are running this program on native and not in a browser and wish to limit the features you use to the supported subset, \
|
"support enough features to be a fully compliant implementation of WebGPU. ",
|
||||||
call Adapter::downlevel_properties or Device::downlevel_properties to get a listing of the features the current \
|
"A subset of the features can still be used. ",
|
||||||
platform supports.";
|
"If you are running this program on native and not in a browser and wish to limit ",
|
||||||
const DOWNLEVEL_ERROR_MESSAGE: &str = "This is not an invalid use of WebGPU: the underlying API or device does not \
|
"the features you use to the supported subset, ",
|
||||||
support enough features to be a fully compliant implementation. A subset of the features can still be used. \
|
"call Adapter::downlevel_properties or Device::downlevel_properties to get ",
|
||||||
If you are running this program on native and not in a browser and wish to work around this issue, call \
|
"a listing of the features the current ",
|
||||||
Adapter::downlevel_properties or Device::downlevel_properties to get a listing of the features the current \
|
"platform supports."
|
||||||
platform supports.";
|
);
|
||||||
|
|
||||||
|
const DOWNLEVEL_ERROR_MESSAGE: &str = concat!(
|
||||||
|
"This is not an invalid use of WebGPU: the underlying API or device does not ",
|
||||||
|
"support enough features to be a fully compliant implementation. ",
|
||||||
|
"A subset of the features can still be used. ",
|
||||||
|
"If you are running this program on native and not in a browser ",
|
||||||
|
"and wish to work around this issue, call ",
|
||||||
|
"Adapter::downlevel_properties or Device::downlevel_properties ",
|
||||||
|
"to get a listing of the features the current platform supports."
|
||||||
|
);
|
||||||
|
|
||||||
#[cfg(feature = "api_log_info")]
|
#[cfg(feature = "api_log_info")]
|
||||||
macro_rules! api_log {
|
macro_rules! api_log {
|
||||||
|
Loading…
Reference in New Issue
Block a user