ngfx::MTLShaderModule

Inherited by ngfx::MTLComputeShaderModule, ngfx::MTLFragmentShaderModule, ngfx::MTLVertexShaderModule

Public Functions

Name
virtual void initFromFile(id< MTLDevice > device, const std::string & filename)
virtual ~MTLShaderModule()

Protected Functions

Name
virtual void initFromByteCode(id< MTLDevice > device, void * data, uint32_t size)

Public Attributes

Name
id< MTLLibrary > mtlLibrary
id< MTLFunction > mtlFunction

Public Functions Documentation

function initFromFile

virtual void initFromFile(
    id< MTLDevice > device,
    const std::string & filename
)

function ~MTLShaderModule

inline virtual ~MTLShaderModule()

Protected Functions Documentation

function initFromByteCode

virtual void initFromByteCode(
    id< MTLDevice > device,
    void * data,
    uint32_t size
)

Public Attributes Documentation

variable mtlLibrary

id< MTLLibrary > mtlLibrary;

variable mtlFunction

id< MTLFunction > mtlFunction;

Updated on 3 April 2021 at 20:21:51 PDT