#[repr(C)]
pub struct RpsRuntimeOpCreateResourceArgs {
Show 13 fields pub resourceId: RpsResourceId, pub desc: RpsResourceDesc, pub originalDesc: RpsVariable, pub clearValue: RpsClearValue, pub allocRequirement: RpsGpuMemoryRequirement, pub allocPlacement: RpsHeapPlacement, pub allAccesses: RpsAccessAttr, pub initialAccess: RpsAccessAttr, pub numMutableFormats: u32, pub mutableFormats: *mut RpsFormat, pub bBufferFormattedWrite: RpsBool, pub bBufferFormattedRead: RpsBool, pub phRuntimeResource: *mut RpsRuntimeResource,
}
Expand description

@brief Parameters for creating a runtime resource.

Fields§

§resourceId: RpsResourceId

< ID of the resource declaration.

§desc: RpsResourceDesc

< Resource description.

§originalDesc: RpsVariable

< Umodified resource description as originally defined by the user.

§clearValue: RpsClearValue

< Default value for clearing the resource.

§allocRequirement: RpsGpuMemoryRequirement

< Allocation requirements.

§allocPlacement: RpsHeapPlacement

< Allocation placement parameters.

§allAccesses: RpsAccessAttr

< Combined accesses of the resource.

§initialAccess: RpsAccessAttr

< Inital access of the resource in a frame.

§numMutableFormats: u32

< Number of mutable formats the resource can be used with.

§mutableFormats: *mut RpsFormat

< Pointer to an array of RpsFormat with numMutableFormats

§bBufferFormattedWrite: RpsBool

< Indicator for a formatted texel buffer (maps to

§bBufferFormattedRead: RpsBool

< Indicator for a formatted texel buffer (maps to

§phRuntimeResource: *mut RpsRuntimeResource

< Pointer to a handle to the runtime resource to be returned.

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.