Struct voodoo::InstanceBuilder
[−]
[src]
pub struct InstanceBuilder<'ib> { /* fields omitted */ }
A builder used to create an Instance
.
Methods
impl<'ib> InstanceBuilder<'ib>
[src]
pub fn new() -> InstanceBuilder<'ib>
[src]
Returns a new instance builder.
pub fn application_info<'ai, 's>(
&'s mut self,
application_info: &'ai ApplicationInfo
) -> &'s mut InstanceBuilder<'ib> where
'ai: 'ib,
[src]
&'s mut self,
application_info: &'ai ApplicationInfo
) -> &'s mut InstanceBuilder<'ib> where
'ai: 'ib,
Sets the application info.
pub fn enabled_layer_names<'s, 'cs, Cs>(
&'s mut self,
enabled_layer_names: Cs
) -> &'s mut InstanceBuilder<'ib> where
'cs: 'ib,
Cs: 'cs + Into<CharStrs<'cs>>,
[src]
&'s mut self,
enabled_layer_names: Cs
) -> &'s mut InstanceBuilder<'ib> where
'cs: 'ib,
Cs: 'cs + Into<CharStrs<'cs>>,
Sets the enabled layer names.
pub fn enabled_extension_names<'s, 'cs, Cs>(
&'s mut self,
enabled_extension_names: Cs
) -> &'s mut InstanceBuilder<'ib> where
'cs: 'ib,
Cs: 'cs + Into<CharStrs<'cs>>,
[src]
&'s mut self,
enabled_extension_names: Cs
) -> &'s mut InstanceBuilder<'ib> where
'cs: 'ib,
Cs: 'cs + Into<CharStrs<'cs>>,
Sets the enabled extension names.
May not be used with ::enabled_extensions
.
pub fn enabled_extensions<'een, 's>(
&'s mut self,
enabled_extensions: &'een [VkExtensionProperties]
) -> &'s mut InstanceBuilder<'ib> where
'een: 'ib,
[src]
&'s mut self,
enabled_extensions: &'een [VkExtensionProperties]
) -> &'s mut InstanceBuilder<'ib> where
'een: 'ib,
Sets the enabled extension names by providing a list of extensions.
May not be used with ::enabled_extension_lists
.
pub fn print_debug_report<'s>(
&'s mut self,
enable: bool
) -> &'s mut InstanceBuilder<'ib>
[src]
&'s mut self,
enable: bool
) -> &'s mut InstanceBuilder<'ib>
Creates a debug report callback which prints debug messages to stdout.
If the VK_EXT_debug_report
extension is not listed among the enabled
extensions, a warning message will be printed once instead.
If the appropriate validation layers are not enabled, no messages will be printed even if debug report printing is enabled.
pub fn build(&self, loader: Loader) -> VdResult<Instance>
[src]
Builds and returns a new Instance
.
Trait Implementations
impl<'ib> Debug for InstanceBuilder<'ib>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<'ib> Clone for InstanceBuilder<'ib>
[src]
fn clone(&self) -> InstanceBuilder<'ib>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more