Function renderdoc_derive::renderdoc[][src]

pub fn renderdoc(input: TokenStream) -> TokenStream

Generates API boilerplate for the renderdoc crate.

Details

This macro expects a tuple struct of the form:

This example is not tested
use renderdoc::ApiVersion;

struct Foo<T: ApiVersion>(T::Entry);

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 each Foo<V###>.