#include "xmaterialpixelshader.h"

XMaterialPixelShader::XMaterialPixelShader()
    : XAsset()
    , mName()
    , mShaderProgram()
{
    SetType(ASSET_TYPE_PIXELSHADER);
    SetName("Material Pixel Shader");
}

XMaterialPixelShader::~XMaterialPixelShader()
{
    
}

void XMaterialPixelShader::Clear()
{
    mName.Clear();
    mShaderProgram.Clear();
}

void XMaterialPixelShader::ParseData(XDataStream *aStream)
{
    if (GetPtr() == -1)
    {
        mName.ParsePtr(aStream);
        mShaderProgram.ParseData(aStream);
    }
}
