Skip to main content

UnityUrpGlobalSettings

Struct UnityUrpGlobalSettings 

Source
pub struct UnityUrpGlobalSettings {
    pub rendering_layer_names: Vec<String>,
    pub valid_rendering_layers: u32,
    pub settings: Vec<UnityGraphicsSettings>,
}
Expand description

Universal RP’s global settings as stored (UniversalRenderPipelineGlobalSettings, m_AssetVersion 10, Universal RP 17.3): the rendering layers and the graphics settings the pipeline reads its runtime resources and options from. The settings are [SerializeReference] entries, each stored once in the object’s managed-reference registry with its class; every one is read to its last byte, so a class whose layout is not verified is refused by name (verified_graphics_settings lists the verified ones).

Fields§

§rendering_layer_names: Vec<String>

m_RenderingLayerNames.

§valid_rendering_layers: u32

m_ValidRenderingLayers.

§settings: Vec<UnityGraphicsSettings>

The graphics settings (m_Settings.m_RuntimeSettings.m_List), in the list’s order.

Implementations§

Source§

impl UnityUrpGlobalSettings

Source

pub fn entry(&self, class: &str) -> Option<&UnityGraphicsSettings>

The entry of class class, where the list has one (a class is listed once).

Source

pub fn renderer_resources(&self) -> Option<UnityUrpRendererResources>

The Universal Renderer’s runtime shaders, where the settings list them.

Source

pub fn render_compatibility_mode(&self) -> Option<bool>

The stored m_EnableRenderCompatibilityMode of the render graph settings, where the settings list them: whether the project asks Universal RP to draw without the render graph. A build honours it only where its Universal RP is compiled with URP_COMPATIBILITY_MODE (crate::player::Player::urp_compatibility_code); without, the pipeline always draws through the render graph.

Trait Implementations§

Source§

impl Clone for UnityUrpGlobalSettings

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for UnityUrpGlobalSettings

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for UnityUrpGlobalSettings

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for UnityUrpGlobalSettings

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for UnityUrpGlobalSettings

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.