![]() |
RenderMan API
23.0
|
#include <RtxPlugin.h>
Classes | |
struct | layerSpec |
Public Types | |
enum | WrapMode { k_Black = 0, k_Clamp, k_Periodic } |
The wrap mode applied at the edges of max resolution. More... | |
enum | DataType { k_Byte = 0, k_Float } |
The type of the data provided by the texture. More... | |
enum | PyramidType { k_Single = 0, k_MIP, k_RIP } |
What type of pyramid should be used? More... | |
Public Attributes | |
int | numChannels |
This is the total number of channels present. More... | |
unsigned int | numLayers |
The maximum # of layers this texture can access. More... | |
struct RtxPlugin::TextureCtx::layerSpec ** | layers |
Int2D | minRes |
The min,max resolution requested for this texture. More... | |
Int2D | maxRes |
enum RtxPlugin::TextureCtx::WrapMode | sWrap |
enum RtxPlugin::TextureCtx::WrapMode | tWrap |
enum RtxPlugin::TextureCtx::DataType | dataType |
enum RtxPlugin::TextureCtx::PyramidType | pyramidType |
bool | isLocked |
Should the tile be locked while filling? (not thread safe?) More... | |
unsigned int | argc |
const char ** | argv |
void * | userData |
bool | retryOnError |
TextureCtx provides initial defining properties for textures generated by this plugin. Each plugin should fill this structure during an Open() method call. Open() is called for each unique instance of a given texture() call in the shader. A unique instance is defined by the string passed to the file parameter of the texture() SL call. NOTE: The Open() method may be called multiple times for a texture as will Close(). On a Close() all resources should be released, and on an Open() they are safe to reaquire.
Definition at line 77 of file RtxPlugin.h.
The type of the data provided by the texture.
Enumerator | |
---|---|
k_Byte | |
k_Float |
Definition at line 109 of file RtxPlugin.h.
What type of pyramid should be used?
Enumerator | |
---|---|
k_Single | |
k_MIP | |
k_RIP |
Definition at line 116 of file RtxPlugin.h.
The wrap mode applied at the edges of max resolution.
Enumerator | |
---|---|
k_Black | |
k_Clamp | |
k_Periodic |
Definition at line 100 of file RtxPlugin.h.
unsigned int RtxPlugin::TextureCtx::argc |
Read-only texture args, they come in pairs, memory is owned by the renderer.
Definition at line 128 of file RtxPlugin.h.
const char** RtxPlugin::TextureCtx::argv |
Definition at line 129 of file RtxPlugin.h.
enum RtxPlugin::TextureCtx::DataType RtxPlugin::TextureCtx::dataType |
bool RtxPlugin::TextureCtx::isLocked |
Should the tile be locked while filling? (not thread safe?)
Definition at line 124 of file RtxPlugin.h.
struct RtxPlugin::TextureCtx::layerSpec * * RtxPlugin::TextureCtx::layers |
Int2D RtxPlugin::TextureCtx::maxRes |
Definition at line 97 of file RtxPlugin.h.
Int2D RtxPlugin::TextureCtx::minRes |
The min,max resolution requested for this texture.
Definition at line 97 of file RtxPlugin.h.
int RtxPlugin::TextureCtx::numChannels |
This is the total number of channels present.
Definition at line 80 of file RtxPlugin.h.
unsigned int RtxPlugin::TextureCtx::numLayers |
The maximum # of layers this texture can access.
Definition at line 83 of file RtxPlugin.h.
enum RtxPlugin::TextureCtx::PyramidType RtxPlugin::TextureCtx::pyramidType |
bool RtxPlugin::TextureCtx::retryOnError |
Definition at line 142 of file RtxPlugin.h.
enum RtxPlugin::TextureCtx::WrapMode RtxPlugin::TextureCtx::sWrap |
enum RtxPlugin::TextureCtx::WrapMode RtxPlugin::TextureCtx::tWrap |
void* RtxPlugin::TextureCtx::userData |
The plugin can use this field to stash its own instance data. The plugin manages ownership.
Definition at line 133 of file RtxPlugin.h.