shader.c revision 4237d5a79f48789aacc67dc43378d2d7813a39f4
/*
* Copyright 2002-2003 Jason Edmeades
* Raphael Junqueira
*
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
/*
* Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
* other than GPL or LGPL is available it will apply instead, Oracle elects to use only
* the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
* a choice of LGPL license versions is made available with the language indicating
* that LGPLv2 or any later version may be used, or where a choice of which version
* of the LGPL is applied is otherwise unspecified.
*/
#include "config.h"
#include "d3d9_private.h"
static inline struct d3d9_vertexshader *impl_from_IDirect3DVertexShader9(IDirect3DVertexShader9 *iface)
{
}
static HRESULT WINAPI d3d9_vertexshader_QueryInterface(IDirect3DVertexShader9 *iface, REFIID riid, void **out)
{
{
return S_OK;
}
return E_NOINTERFACE;
}
{
if (refcount == 1)
{
}
return refcount;
}
{
if (!refcount)
{
/* Release the device last, as it may cause the device to be destroyed. */
}
return refcount;
}
static HRESULT WINAPI d3d9_vertexshader_GetDevice(IDirect3DVertexShader9 *iface, IDirect3DDevice9 **device)
{
return D3D_OK;
}
static HRESULT WINAPI d3d9_vertexshader_GetFunction(IDirect3DVertexShader9 *iface, void *data, UINT *data_size)
{
return hr;
}
static const IDirect3DVertexShader9Vtbl d3d9_vertexshader_vtbl =
{
/* IUnknown */
/* IDirect3DVertexShader9 */
};
{
}
static const struct wined3d_parent_ops d3d9_vertexshader_wined3d_parent_ops =
{
};
HRESULT vertexshader_init(struct d3d9_vertexshader *shader, struct d3d9_device *device, const DWORD *byte_code)
{
{
return hr;
}
return D3D_OK;
}
{
if (!iface)
return NULL;
return impl_from_IDirect3DVertexShader9(iface);
}
static inline struct d3d9_pixelshader *impl_from_IDirect3DPixelShader9(IDirect3DPixelShader9 *iface)
{
}
static HRESULT WINAPI d3d9_pixelshader_QueryInterface(IDirect3DPixelShader9 *iface, REFIID riid, void **out)
{
{
return S_OK;
}
return E_NOINTERFACE;
}
{
if (refcount == 1)
{
}
return refcount;
}
{
if (!refcount)
{
/* Release the device last, as it may cause the device to be destroyed. */
}
return refcount;
}
static HRESULT WINAPI d3d9_pixelshader_GetDevice(IDirect3DPixelShader9 *iface, IDirect3DDevice9 **device)
{
return D3D_OK;
}
static HRESULT WINAPI d3d9_pixelshader_GetFunction(IDirect3DPixelShader9 *iface, void *data, UINT *data_size)
{
return hr;
}
static const IDirect3DPixelShader9Vtbl d3d9_pixelshader_vtbl =
{
/* IUnknown */
/* IDirect3DPixelShader9 */
};
{
}
static const struct wined3d_parent_ops d3d9_pixelshader_wined3d_parent_ops =
{
};
HRESULT pixelshader_init(struct d3d9_pixelshader *shader, struct d3d9_device *device, const DWORD *byte_code)
{
{
return hr;
}
return D3D_OK;
}
{
if (!iface)
return NULL;
return impl_from_IDirect3DPixelShader9(iface);
}