FFL
Loading...
Searching...
No Matches
FFLiUtilShader Class Reference

#include <FFLiUtilShader.h>

Classes

struct  AttributeStreamDesc
struct  FetchShader

Public Member Functions

 NN_STATIC_ASSERT (sizeof(FetchShader)==0x24)
 NN_STATIC_ASSERT (sizeof(AttributeStreamDesc)==0x10)

Static Public Member Functions

static u32 GetBufferSize (u32 numAttribs, const void *pShaderData, u32 shaderIndex)
static u32 GetBufferSizeForFetch (u32 numAttribs)
static u32 GetHeaderBufferSize (u32 numAttribs, const void *pShaderData, u32 shaderIndex)
static u32 GetHeaderBufferSizeForFetch (u32 numAttribs)
static u32 GetProgramBufferSize (u32 numAttribs, const void *pShaderData, u32 shaderIndex)
static u32 GetProgramBufferSizeForFetch (u32 numAttribs)
static bool BuildShader (FFLiUtilShader::FetchShader *pFetchShader, const GX2VertexShader *pVertexShader, FFLiUtilShaderAllocator *pAllocator, const FFLiUtilShader::AttributeStreamDesc *pAttribs, u32 numAttribs, bool invalidate)
static bool BuildShader (GX2PixelShader **ppShader, FFLiUtilShaderAllocator *pAllocator, const void *pShaderData, u32 shaderIndex, bool invalidate)
static bool BuildShader (GX2VertexShader **ppShader, FFLiUtilShaderAllocator *pAllocator, const void *pShaderData, u32 shaderIndex, bool invalidate)
static bool GetUniformLocation (u32 *pLocation, const GX2PixelShader *pShader, const char *name)
static bool GetUniformLocation (u32 *pLocation, const GX2VertexShader *pShader, const char *name)
static bool GetUniformBlockLocation (u32 *pLocation, const GX2PixelShader *pShader, const char *name)
static bool GetUniformBlockLocation (u32 *pLocation, const GX2VertexShader *pShader, const char *name)
static bool GetSamplerLocation (u32 *pLocation, const GX2PixelShader *pShader, const char *name)

Member Function Documentation

◆ NN_STATIC_ASSERT() [1/2]

FFLiUtilShader::NN_STATIC_ASSERT ( sizeof(FetchShader) = =0x24)

◆ NN_STATIC_ASSERT() [2/2]

FFLiUtilShader::NN_STATIC_ASSERT ( sizeof(AttributeStreamDesc) = =0x10)

◆ GetBufferSize()

u32 FFLiUtilShader::GetBufferSize ( u32 numAttribs,
const void * pShaderData,
u32 shaderIndex )
static

◆ GetBufferSizeForFetch()

u32 FFLiUtilShader::GetBufferSizeForFetch ( u32 numAttribs)
static

◆ GetHeaderBufferSize()

u32 FFLiUtilShader::GetHeaderBufferSize ( u32 numAttribs,
const void * pShaderData,
u32 shaderIndex )
static

◆ GetHeaderBufferSizeForFetch()

u32 FFLiUtilShader::GetHeaderBufferSizeForFetch ( u32 numAttribs)
static

◆ GetProgramBufferSize()

u32 FFLiUtilShader::GetProgramBufferSize ( u32 numAttribs,
const void * pShaderData,
u32 shaderIndex )
static

◆ GetProgramBufferSizeForFetch()

u32 FFLiUtilShader::GetProgramBufferSizeForFetch ( u32 numAttribs)
static

◆ BuildShader() [1/3]

bool FFLiUtilShader::BuildShader ( FFLiUtilShader::FetchShader * pFetchShader,
const GX2VertexShader * pVertexShader,
FFLiUtilShaderAllocator * pAllocator,
const FFLiUtilShader::AttributeStreamDesc * pAttribs,
u32 numAttribs,
bool invalidate )
static

◆ BuildShader() [2/3]

bool FFLiUtilShader::BuildShader ( GX2PixelShader ** ppShader,
FFLiUtilShaderAllocator * pAllocator,
const void * pShaderData,
u32 shaderIndex,
bool invalidate )
static

◆ BuildShader() [3/3]

bool FFLiUtilShader::BuildShader ( GX2VertexShader ** ppShader,
FFLiUtilShaderAllocator * pAllocator,
const void * pShaderData,
u32 shaderIndex,
bool invalidate )
static

◆ GetUniformLocation() [1/2]

bool FFLiUtilShader::GetUniformLocation ( u32 * pLocation,
const GX2PixelShader * pShader,
const char * name )
static

◆ GetUniformLocation() [2/2]

bool FFLiUtilShader::GetUniformLocation ( u32 * pLocation,
const GX2VertexShader * pShader,
const char * name )
static

◆ GetUniformBlockLocation() [1/2]

bool FFLiUtilShader::GetUniformBlockLocation ( u32 * pLocation,
const GX2PixelShader * pShader,
const char * name )
static

◆ GetUniformBlockLocation() [2/2]

bool FFLiUtilShader::GetUniformBlockLocation ( u32 * pLocation,
const GX2VertexShader * pShader,
const char * name )
static

◆ GetSamplerLocation()

bool FFLiUtilShader::GetSamplerLocation ( u32 * pLocation,
const GX2PixelShader * pShader,
const char * name )
static