NW4F G3d
Loading...
Searching...
No Matches
nw::g3d::fnd::GfxFetchShader Class Reference

#include <g3d_GfxObject.h>

Inherits nw::g3d::fnd::GfxFetchShader_t.

Public Types

enum  { SHADER_ALIGNMENT = 256 }

Public Member Functions

void Setup ()
void Cleanup ()
void DCFlush () const
void CalcSize ()
void Load () const
GX2FetchShader * GetGX2FetchShader ()
const GX2FetchShader * GetGX2FetchShader () const
void SetAttribCount (u32 count)
u32 GetAttribCount () const
u32 GetShaderSize () const
void SetShaderPtr (void *ptr)
void * GetShaderPtr ()
const void * GetShaderPtr () const
u32 GetDivisor (int divisorIndex) const
void SetVertexBuffer (int attribIndex, const GfxBuffer *pBuffer)
const GfxBufferGetVertexBuffer (int attribIndex) const
void SetDefault ()
void SetLocation (int attribIndex, u32 location)
u32 GetLocation (int attribIndex) const
void SetBufferSlot (int attribIndex, u32 slot)
void SetFormat (int attribIndex, GX2AttribFormat format)
u32 GetDivisorSlot (int attribIndex) const
void SetOffset (int attribIndex, u32 offset)
u32 GetOffset (int attribIndex) const
void SetDefault (void *pShader)
void SetLocation (void *pShader, int attribIndex, u32 location)
u32 GetLocation (const void *pShader, int attribIndex) const
void SetBufferSlot (void *pShader, int attribIndex, u32 slot)
void SetFormat (void *pShader, int attribIndex, GX2AttribFormat format)
u32 GetDivisorSlot (const void *pShader, int attribIndex) const
void SetOffset (void *pShader, int attribIndex, u32 offset)
u32 GetOffset (const void *pShader, int attribIndex) const

Protected Member Functions

u32 * GetVFInst (int attribIndex)
const u32 * GetVFInst (int attribIndex) const
u32 * GetVFInst (void *pShader, int attribIndex)
const u32 * GetVFInst (const void *pShader, int attribIndex) const
void LoadVertexAttribArray (u32 idxAttrib, const GfxBuffer *pBuffer) const
void LoadVertexAttribArray () const
void LoadVertexAttribValue () const

Private Types

enum  { MAX_INST_PER_FETCH_CLAUSE = 16 , FETCH_INST_ALIGNMENT = 16 , CF_INST_SIZE = 8 , VF_INST_SIZE = 16 }

Private Member Functions

 NW_G3D_GFX_OBJECT (GfxFetchShader)

Additional Inherited Members

Public Attributes inherited from nw::g3d::fnd::GfxFetchShader_t
internal::GX2FetchShaderData gx2FetchShader
u32 ofsVFInst
u32 handle

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
private
Enumerator
MAX_INST_PER_FETCH_CLAUSE 
FETCH_INST_ALIGNMENT 
CF_INST_SIZE 
VF_INST_SIZE 

◆ anonymous enum

anonymous enum
Enumerator
SHADER_ALIGNMENT 

Member Function Documentation

◆ NW_G3D_GFX_OBJECT()

nw::g3d::fnd::GfxFetchShader::NW_G3D_GFX_OBJECT ( GfxFetchShader )
private

◆ Setup()

void nw::g3d::fnd::GfxFetchShader::Setup ( )

◆ Cleanup()

void nw::g3d::fnd::GfxFetchShader::Cleanup ( )

◆ DCFlush()

void nw::g3d::fnd::GfxFetchShader::DCFlush ( ) const

◆ CalcSize()

void nw::g3d::fnd::GfxFetchShader::CalcSize ( )

◆ Load()

void nw::g3d::fnd::GfxFetchShader::Load ( ) const

◆ GetGX2FetchShader() [1/2]

GX2FetchShader * nw::g3d::fnd::GfxFetchShader::GetGX2FetchShader ( )
inline

◆ GetGX2FetchShader() [2/2]

const GX2FetchShader * nw::g3d::fnd::GfxFetchShader::GetGX2FetchShader ( ) const
inline

◆ SetAttribCount()

void nw::g3d::fnd::GfxFetchShader::SetAttribCount ( u32 count)
inline

◆ GetAttribCount()

u32 nw::g3d::fnd::GfxFetchShader::GetAttribCount ( ) const
inline

◆ GetShaderSize()

u32 nw::g3d::fnd::GfxFetchShader::GetShaderSize ( ) const
inline

◆ SetShaderPtr()

void nw::g3d::fnd::GfxFetchShader::SetShaderPtr ( void * ptr)

◆ GetShaderPtr() [1/2]

void * nw::g3d::fnd::GfxFetchShader::GetShaderPtr ( )

◆ GetShaderPtr() [2/2]

const void * nw::g3d::fnd::GfxFetchShader::GetShaderPtr ( ) const

◆ GetDivisor()

u32 nw::g3d::fnd::GfxFetchShader::GetDivisor ( int divisorIndex) const
inline

◆ SetVertexBuffer()

void nw::g3d::fnd::GfxFetchShader::SetVertexBuffer ( int attribIndex,
const GfxBuffer * pBuffer )

◆ GetVertexBuffer()

const GfxBuffer * nw::g3d::fnd::GfxFetchShader::GetVertexBuffer ( int attribIndex) const

◆ SetDefault() [1/2]

void nw::g3d::fnd::GfxFetchShader::SetDefault ( )
inline

◆ SetLocation() [1/2]

void nw::g3d::fnd::GfxFetchShader::SetLocation ( int attribIndex,
u32 location )
inline

◆ GetLocation() [1/2]

u32 nw::g3d::fnd::GfxFetchShader::GetLocation ( int attribIndex) const
inline

◆ SetBufferSlot() [1/2]

void nw::g3d::fnd::GfxFetchShader::SetBufferSlot ( int attribIndex,
u32 slot )
inline

◆ SetFormat() [1/2]

void nw::g3d::fnd::GfxFetchShader::SetFormat ( int attribIndex,
GX2AttribFormat format )
inline

◆ GetDivisorSlot() [1/2]

u32 nw::g3d::fnd::GfxFetchShader::GetDivisorSlot ( int attribIndex) const
inline

◆ SetOffset() [1/2]

void nw::g3d::fnd::GfxFetchShader::SetOffset ( int attribIndex,
u32 offset )
inline

◆ GetOffset() [1/2]

u32 nw::g3d::fnd::GfxFetchShader::GetOffset ( int attribIndex) const
inline

◆ GetVFInst() [1/4]

u32 * nw::g3d::fnd::GfxFetchShader::GetVFInst ( int attribIndex)
inlineprotected

◆ GetVFInst() [2/4]

const u32 * nw::g3d::fnd::GfxFetchShader::GetVFInst ( int attribIndex) const
inlineprotected

◆ SetDefault() [2/2]

void nw::g3d::fnd::GfxFetchShader::SetDefault ( void * pShader)

◆ SetLocation() [2/2]

void nw::g3d::fnd::GfxFetchShader::SetLocation ( void * pShader,
int attribIndex,
u32 location )

◆ GetLocation() [2/2]

u32 nw::g3d::fnd::GfxFetchShader::GetLocation ( const void * pShader,
int attribIndex ) const

◆ SetBufferSlot() [2/2]

void nw::g3d::fnd::GfxFetchShader::SetBufferSlot ( void * pShader,
int attribIndex,
u32 slot )

◆ SetFormat() [2/2]

void nw::g3d::fnd::GfxFetchShader::SetFormat ( void * pShader,
int attribIndex,
GX2AttribFormat format )

◆ GetDivisorSlot() [2/2]

u32 nw::g3d::fnd::GfxFetchShader::GetDivisorSlot ( const void * pShader,
int attribIndex ) const

◆ SetOffset() [2/2]

void nw::g3d::fnd::GfxFetchShader::SetOffset ( void * pShader,
int attribIndex,
u32 offset )

◆ GetOffset() [2/2]

u32 nw::g3d::fnd::GfxFetchShader::GetOffset ( const void * pShader,
int attribIndex ) const

◆ GetVFInst() [3/4]

u32 * nw::g3d::fnd::GfxFetchShader::GetVFInst ( void * pShader,
int attribIndex )
protected

◆ GetVFInst() [4/4]

const u32 * nw::g3d::fnd::GfxFetchShader::GetVFInst ( const void * pShader,
int attribIndex ) const
protected

◆ LoadVertexAttribArray() [1/2]

void nw::g3d::fnd::GfxFetchShader::LoadVertexAttribArray ( u32 idxAttrib,
const GfxBuffer * pBuffer ) const
protected

◆ LoadVertexAttribArray() [2/2]

void nw::g3d::fnd::GfxFetchShader::LoadVertexAttribArray ( ) const
protected

◆ LoadVertexAttribValue()

void nw::g3d::fnd::GfxFetchShader::LoadVertexAttribValue ( ) const
protected