Skip to main content

IComputeBufferMethods

Trait IComputeBufferMethods 

Source
pub trait IComputeBufferMethods: IComputeBuffer {
Show 14 methods // Provided methods fn finalize(self) { ... } fn dispose(self) { ... } fn dispose_2(self, disposing: impl Into<bool>) { ... } fn ctor(self, count: impl Into<i32>, stride: impl Into<i32>) { ... } fn ctor_2( self, count: impl Into<i32>, stride: impl Into<i32>, type: impl Into<ComputeBufferType>, ) { ... } fn ctor_3( self, count: impl Into<i32>, stride: impl Into<i32>, type: impl Into<ComputeBufferType>, usage: impl Into<ComputeBufferMode>, ) { ... } fn ctor_4( self, count: impl Into<i32>, stride: impl Into<i32>, type: impl Into<ComputeBufferType>, usage: impl Into<ComputeBufferMode>, stack_depth: impl Into<i32>, ) { ... } fn release(self) { ... } fn get_count(self) -> i32 { ... } fn get_stride(self) -> i32 { ... } fn set_data<M0: IlType + Copy + ClassIdentity>( self, data: impl Into<List_1<M0>>, managed_buffer_start_index: impl Into<i32>, compute_buffer_start_index: impl Into<i32>, count: impl Into<i32>, ) { ... } fn internal_set_native_data( self, data: impl Into<IntPtr>, native_buffer_start_index: impl Into<i32>, compute_buffer_start_index: impl Into<i32>, count: impl Into<i32>, elem_size: impl Into<i32>, ) { ... } fn internal_set_data( self, data: impl Into<IlInstance>, managed_buffer_start_index: impl Into<i32>, compute_buffer_start_index: impl Into<i32>, count: impl Into<i32>, elem_size: impl Into<i32>, ) { ... } fn set_name(self, value: impl Into<Il2CppString>) { ... }
}

Provided Methods§

Source

fn finalize(self)

Finalize() overload

Source

fn dispose(self)

Dispose() overload

Source

fn dispose_2(self, disposing: impl Into<bool>)

Dispose(bool) overload

Source

fn ctor(self, count: impl Into<i32>, stride: impl Into<i32>)

.ctor(i32, i32) overload

Source

fn ctor_2( self, count: impl Into<i32>, stride: impl Into<i32>, type: impl Into<ComputeBufferType>, )

.ctor(i32, i32, crate::unity_engine::computebuffertype::ComputeBufferType) overload

Source

fn ctor_3( self, count: impl Into<i32>, stride: impl Into<i32>, type: impl Into<ComputeBufferType>, usage: impl Into<ComputeBufferMode>, )

.ctor(i32, i32, crate::unity_engine::computebuffertype::ComputeBufferType, crate::unity_engine::computebuffermode::ComputeBufferMode) overload

Source

fn ctor_4( self, count: impl Into<i32>, stride: impl Into<i32>, type: impl Into<ComputeBufferType>, usage: impl Into<ComputeBufferMode>, stack_depth: impl Into<i32>, )

.ctor(i32, i32, crate::unity_engine::computebuffertype::ComputeBufferType, crate::unity_engine::computebuffermode::ComputeBufferMode, i32) overload

Source

fn release(self)

Release() overload

Source

fn get_count(self) -> i32

get_count() overload

Source

fn get_stride(self) -> i32

get_stride() overload

Source

fn set_data<M0: IlType + Copy + ClassIdentity>( self, data: impl Into<List_1<M0>>, managed_buffer_start_index: impl Into<i32>, compute_buffer_start_index: impl Into<i32>, count: impl Into<i32>, )

Source

fn internal_set_native_data( self, data: impl Into<IntPtr>, native_buffer_start_index: impl Into<i32>, compute_buffer_start_index: impl Into<i32>, count: impl Into<i32>, elem_size: impl Into<i32>, )

InternalSetNativeData(::unity::IntPtr, i32, i32, i32, i32) overload

Source

fn internal_set_data( self, data: impl Into<IlInstance>, managed_buffer_start_index: impl Into<i32>, compute_buffer_start_index: impl Into<i32>, count: impl Into<i32>, elem_size: impl Into<i32>, )

InternalSetData(::unity::IlInstance, i32, i32, i32, i32) overload

Source

fn set_name(self, value: impl Into<Il2CppString>)

set_name(::unity::Il2CppString) overload

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<__T: IComputeBuffer> IComputeBufferMethods for __T

Available on crate feature unity_engine-computebuffer only.