2013-04-17 23:29:41 -04:00
|
|
|
// Copyright 2013 Dolphin Emulator Project
|
|
|
|
// Licensed under GPLv2
|
|
|
|
// Refer to the license.txt file included.
|
2008-12-08 04:46:09 +00:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "D3DBase.h"
|
|
|
|
|
2011-01-29 20:16:51 +00:00
|
|
|
namespace DX9
|
|
|
|
{
|
|
|
|
|
2008-12-08 04:46:09 +00:00
|
|
|
namespace D3D
|
|
|
|
{
|
2010-01-17 17:44:09 +00:00
|
|
|
LPDIRECT3DVERTEXSHADER9 CreateVertexShaderFromByteCode(const u8 *bytecode, int len);
|
|
|
|
LPDIRECT3DPIXELSHADER9 CreatePixelShaderFromByteCode(const u8 *bytecode, int len);
|
|
|
|
|
|
|
|
// The returned bytecode buffers should be delete[]-d.
|
|
|
|
bool CompileVertexShader(const char *code, int len, u8 **bytecode, int *bytecodelen);
|
|
|
|
bool CompilePixelShader(const char *code, int len, u8 **bytecode, int *bytecodelen);
|
|
|
|
|
|
|
|
// Utility functions
|
|
|
|
LPDIRECT3DVERTEXSHADER9 CompileAndCreateVertexShader(const char *code, int len);
|
2010-09-28 02:15:02 +00:00
|
|
|
LPDIRECT3DPIXELSHADER9 CompileAndCreatePixelShader(const char *code, unsigned int len);
|
2010-06-02 20:35:12 +00:00
|
|
|
}
|
2011-01-29 20:16:51 +00:00
|
|
|
|
|
|
|
} // namespace DX9
|