Struct gfx_device_gl::Factory
[−]
[src]
pub struct Factory { // some fields omitted }
GL resource factory.
Methods
impl Factory
[src]
fn new(share: Rc<Share>) -> Factory
Create a new Factory
.
fn create_command_buffer(&mut self) -> CommandBuffer
Trait Implementations
impl Clone for Factory
[src]
fn clone(&self) -> Factory
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Factory<R> for Factory
[src]
type Mapper = RawMapping
Associated mapper type
fn get_capabilities(&self) -> &Capabilities
Returns the capabilities available to the specific API implementation
fn create_buffer_raw(&mut self, info: BufferInfo) -> Result<RawBuffer<R>, BufferError>
fn create_buffer_const_raw(&mut self, data: &[u8], stride: usize, role: BufferRole, bind: Bind) -> Result<RawBuffer<R>, BufferError>
fn create_shader(&mut self, stage: Stage, code: &[u8]) -> Result<Shader<R>, CreateShaderError>
fn create_program(&mut self, shader_set: &ShaderSet<R>) -> Result<Program<R>, CreateProgramError>
fn create_pipeline_state_raw(&mut self, program: &Program<R>, desc: &Descriptor) -> Result<RawPipelineState<R>, CreationError>
fn create_texture_raw(&mut self, desc: Descriptor, hint: Option<ChannelType>, data_opt: Option<&[&[u8]]>) -> Result<RawTexture<R>, Error>
Create a new empty raw texture with no data. The channel type parameter is a hint, required to assist backends that have no concept of typeless formats (OpenGL). The initial data, if given, has to be provided for all mip levels and slices: Slice0.Mip0, Slice0.Mip1, ..., Slice1.Mip0, ... Read more