Adjust doc link rendering (#273)
This commit is contained in:
parent
39a6a8552a
commit
25628402f9
2 changed files with 8 additions and 4 deletions
|
@ -77,11 +77,12 @@ pub trait EntryV1_0 {
|
|||
type Instance;
|
||||
fn fp_v1_0(&self) -> &vk::EntryFnV1_0;
|
||||
fn static_fn(&self) -> &vk::StaticFn;
|
||||
#[doc = "<https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/vkCreateInstance.html>"]
|
||||
///
|
||||
/// # Safety
|
||||
/// In order for the created `Instance` to be valid for the duration of its
|
||||
/// usage, the `Entry` this was called on must be dropped later than the
|
||||
/// resulting `Instance`.
|
||||
#[doc = "<https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/vkCreateInstance.html>"]
|
||||
unsafe fn create_instance(
|
||||
&self,
|
||||
create_info: &vk::InstanceCreateInfo,
|
||||
|
@ -142,11 +143,12 @@ pub trait EntryV1_0 {
|
|||
|
||||
impl<L> EntryV1_0 for EntryCustom<L> {
|
||||
type Instance = Instance;
|
||||
#[doc = "<https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/vkCreateInstance.html>"]
|
||||
///
|
||||
/// # Safety
|
||||
/// In order for the created `Instance` to be valid for the duration of its
|
||||
/// usage, the `Entry` this was called on must be dropped later than the
|
||||
/// resulting `Instance`.
|
||||
#[doc = "<https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/vkCreateInstance.html>"]
|
||||
unsafe fn create_instance(
|
||||
&self,
|
||||
create_info: &vk::InstanceCreateInfo,
|
||||
|
|
|
@ -38,11 +38,12 @@ impl Instance {
|
|||
|
||||
impl InstanceV1_0 for Instance {
|
||||
type Device = Device;
|
||||
#[doc = "<https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/vkCreateDevice.html>"]
|
||||
///
|
||||
/// # Safety
|
||||
/// In order for the created `Device` to be valid for the duration of its
|
||||
/// usage, the `Instance` this was called on must be dropped later than the
|
||||
/// resulting `Device`.
|
||||
#[doc = "<https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/vkCreateDevice.html>"]
|
||||
unsafe fn create_device(
|
||||
&self,
|
||||
physical_device: vk::PhysicalDevice,
|
||||
|
@ -292,11 +293,12 @@ pub trait InstanceV1_0 {
|
|||
type Device;
|
||||
fn handle(&self) -> vk::Instance;
|
||||
fn fp_v1_0(&self) -> &vk::InstanceFnV1_0;
|
||||
#[doc = "<https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/vkCreateDevice.html>"]
|
||||
///
|
||||
/// # Safety
|
||||
/// In order for the created `Device` to be valid for the duration of its
|
||||
/// usage, the `Instance` this was called on must be dropped later than the
|
||||
/// resulting `Device`.
|
||||
#[doc = "<https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/vkCreateDevice.html>"]
|
||||
unsafe fn create_device(
|
||||
&self,
|
||||
physical_device: vk::PhysicalDevice,
|
||||
|
|
Loading…
Add table
Reference in a new issue