The Dirtchamber
A mixed reality testing environment for real-time global illumination algorithms
Public Member Functions | List of all members
dune::shader_resource Struct Referenceabstract

A shader resource wrapper. More...

#include <shader_resource.h>

Inheritance diagram for dune::shader_resource:
dune::cbuffer< cbs_debug > dune::cbuffer< cbs_delta_injection > dune::cbuffer< cbs_mesh_data_ps > dune::cbuffer< cbs_mesh_data_vs > dune::cbuffer< cbs_parameters > dune::cbuffer< cbs_propagation > dune::cbuffer< dune::gilga_mesh::mesh_data_ps > dune::cbuffer< dune::gilga_mesh::mesh_data_vs > dune::cbuffer< onetime > dune::cbuffer< param > dune::cbuffer< parameters > dune::cbuffer< per_frame > dune::cbuffer< T > dune::gbuffer dune::light_propagation_volume dune::sampler_state dune::sparse_voxel_octree dune::texture

Public Member Functions

virtual void to_vs (ID3D11DeviceContext *context, UINT slot)
 Upload the shader resource to register slot of a vertex shader.
 
virtual void to_gs (ID3D11DeviceContext *context, UINT slot)
 Upload the shader resource to register slot of a geometry shader.
 
virtual void to_ps (ID3D11DeviceContext *context, UINT slot)
 Upload the shader resource to register slot of a pixel shader.
 
virtual void to_cs (ID3D11DeviceContext *context, UINT slot)
 Upload the shader resource to register slot of a compute shader.
 
virtual void destroy ()=0
 Destroy the shader_resource and free all memory.
 

Detailed Description

A shader resource wrapper.

This basic interface defines a resource which can be anything that can be uploaded to a GPU. Each shader_resource has an identifying name, a function to destroy it and free all its resources and several functions to upload it to a typed shader into a specified register.


The documentation for this struct was generated from the following files: