Struct IblCubemapGenerator
pub struct IblCubemapGenerator {
pub pipeline: ComputePipeline,
pub bind_group_layout: BindGroupLayout,
pub uniform_buf: Buffer,
pub env_cubemap: Texture,
pub env_cubemap_view: TextureView,
pub irradiance_cubemap: Texture,
pub irradiance_cubemap_view: TextureView,
pub specular_cubemap: Texture,
pub specular_cubemap_view: TextureView,
pub brdf_lut_texture: Texture,
pub brdf_lut_view: TextureView,
pub sampler: Sampler,
}Expand description
GPU-resident cubemap IBL generator and prefiltered environment probe state.
Fields§
§pipeline: ComputePipeline§bind_group_layout: BindGroupLayout§uniform_buf: Buffer§env_cubemap: Texture§env_cubemap_view: TextureView§irradiance_cubemap: Texture§irradiance_cubemap_view: TextureView§specular_cubemap: Texture§specular_cubemap_view: TextureView§brdf_lut_texture: Texture§brdf_lut_view: TextureView§sampler: SamplerImplementations§
§impl IblCubemapGenerator
impl IblCubemapGenerator
pub fn new(device: &Device) -> IblCubemapGenerator
pub fn new(device: &Device) -> IblCubemapGenerator
Creates the GPU cubemap textures (Rgba16Float), views (D2Array / Cube), and convolution pipeline.
pub fn dispatch_convolve(
&self,
device: &Device,
queue: &Queue,
encoder: &mut CommandEncoder,
params: &IblCubemapParams,
)
pub fn dispatch_convolve( &self, device: &Device, queue: &Queue, encoder: &mut CommandEncoder, params: &IblCubemapParams, )
Encodes a 6-face procedural sky + diffuse irradiance + 5-mip GGX specular convolution pass.
Auto Trait Implementations§
impl !RefUnwindSafe for IblCubemapGenerator
impl !UnwindSafe for IblCubemapGenerator
impl Freeze for IblCubemapGenerator
impl Send for IblCubemapGenerator
impl Sync for IblCubemapGenerator
impl Unpin for IblCubemapGenerator
impl UnsafeUnpin for IblCubemapGenerator
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more