[−][src]Derive Macro renderdoc_derive::RenderDoc
#[derive(RenderDoc)] { // Attributes available to this derive: #[renderdoc_convert] }
Generates API boilerplate for the renderdoc
crate.
Details
This macro expects a tuple struct of the form:
ⓘThis example is not tested
use renderdoc::Version; struct Foo<T: Version>(Entry, PhantomData<T>);
Given the data structure above, this macro generates the following implementations:
From
conversions downgrading a newer API to a compatible older API.- Implementations of the
RenderDocV###
trait for eachFoo<V###>
.