RenderMan API  23.0
RtxPlugin::TextureCtx Struct Reference

#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
 

Detailed Description

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.

Member Enumeration Documentation

◆ DataType

The type of the data provided by the texture.

Enumerator
k_Byte 
k_Float 

Definition at line 109 of file RtxPlugin.h.

◆ PyramidType

What type of pyramid should be used?

Enumerator
k_Single 
k_MIP 
k_RIP 

Definition at line 116 of file RtxPlugin.h.

◆ WrapMode

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.

Member Data Documentation

◆ argc

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.

◆ argv

const char** RtxPlugin::TextureCtx::argv

Definition at line 129 of file RtxPlugin.h.

◆ dataType

enum RtxPlugin::TextureCtx::DataType RtxPlugin::TextureCtx::dataType

◆ isLocked

bool RtxPlugin::TextureCtx::isLocked

Should the tile be locked while filling? (not thread safe?)

Definition at line 124 of file RtxPlugin.h.

◆ layers

struct RtxPlugin::TextureCtx::layerSpec * * RtxPlugin::TextureCtx::layers

◆ maxRes

Int2D RtxPlugin::TextureCtx::maxRes

Definition at line 97 of file RtxPlugin.h.

◆ minRes

Int2D RtxPlugin::TextureCtx::minRes

The min,max resolution requested for this texture.

Definition at line 97 of file RtxPlugin.h.

◆ numChannels

int RtxPlugin::TextureCtx::numChannels

This is the total number of channels present.

Definition at line 80 of file RtxPlugin.h.

◆ numLayers

unsigned int RtxPlugin::TextureCtx::numLayers

The maximum # of layers this texture can access.

Definition at line 83 of file RtxPlugin.h.

◆ pyramidType

enum RtxPlugin::TextureCtx::PyramidType RtxPlugin::TextureCtx::pyramidType

◆ retryOnError

bool RtxPlugin::TextureCtx::retryOnError

Definition at line 142 of file RtxPlugin.h.

◆ sWrap

enum RtxPlugin::TextureCtx::WrapMode RtxPlugin::TextureCtx::sWrap

◆ tWrap

enum RtxPlugin::TextureCtx::WrapMode RtxPlugin::TextureCtx::tWrap

◆ userData

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.


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