all: replace ustr literals by cstr literals
This commit is contained in:
parent
1a0181f2ac
commit
e2cb37c4d8
5 changed files with 17 additions and 21 deletions
|
|
@ -63,7 +63,7 @@ impl VulkanInstance {
|
|||
.collect();
|
||||
let app_info = ApplicationInfo::default()
|
||||
.api_version(API_VERSION)
|
||||
.application_name(ustr!("jay").as_c_str().unwrap())
|
||||
.application_name(c"jay")
|
||||
.application_version(1);
|
||||
let mut severity = DebugUtilsMessageSeverityFlagsEXT::empty()
|
||||
| DebugUtilsMessageSeverityFlagsEXT::ERROR
|
||||
|
|
|
|||
|
|
@ -18,7 +18,6 @@ use {
|
|||
PrimitiveTopology, PushConstantRange, SampleCountFlags, ShaderStageFlags,
|
||||
},
|
||||
std::{mem, rc::Rc, slice},
|
||||
uapi::ustr,
|
||||
};
|
||||
|
||||
pub(super) struct VulkanPipeline {
|
||||
|
|
@ -87,16 +86,15 @@ impl VulkanDevice {
|
|||
let destroy_layout =
|
||||
OnDrop(|| unsafe { self.device.destroy_pipeline_layout(pipeline_layout, None) });
|
||||
let pipeline = {
|
||||
let main = ustr!("main").as_c_str().unwrap();
|
||||
let stages = [
|
||||
PipelineShaderStageCreateInfo::default()
|
||||
.stage(ShaderStageFlags::VERTEX)
|
||||
.module(info.vert.module)
|
||||
.name(main),
|
||||
.name(c"main"),
|
||||
PipelineShaderStageCreateInfo::default()
|
||||
.stage(ShaderStageFlags::FRAGMENT)
|
||||
.module(info.frag.module)
|
||||
.name(main),
|
||||
.name(c"main"),
|
||||
];
|
||||
let input_assembly_state = PipelineInputAssemblyStateCreateInfo::default()
|
||||
.topology(PrimitiveTopology::TRIANGLE_STRIP);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue