mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-04-13 05:43:18 -07:00
libs/vkd3d-shader: Add library.
This commit is contained in:
35
libs/vkd3d-shader/vkd3d_shader_main.c
Normal file
35
libs/vkd3d-shader/vkd3d_shader_main.c
Normal file
@@ -0,0 +1,35 @@
|
||||
/*
|
||||
* Copyright 2017 Józef Kucia for CodeWeavers
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* 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
|
||||
*/
|
||||
|
||||
#include "vkd3d_shader_private.h"
|
||||
|
||||
HRESULT vkd3d_shader_compile_dxbc(const struct vkd3d_shader_code *dxbc,
|
||||
struct vkd3d_shader_code *spirv, uint32_t compiler_options)
|
||||
{
|
||||
FIXME("Not implemented!\n");
|
||||
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
void vkd3d_shader_free_shader_code(struct vkd3d_shader_code *shader_code)
|
||||
{
|
||||
if (!shader_code)
|
||||
return;
|
||||
|
||||
vkd3d_free((void *)shader_code->code);
|
||||
}
|
34
libs/vkd3d-shader/vkd3d_shader_private.h
Normal file
34
libs/vkd3d-shader/vkd3d_shader_private.h
Normal file
@@ -0,0 +1,34 @@
|
||||
/*
|
||||
* Copyright 2017 Józef Kucia for CodeWeavers
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* 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
|
||||
*/
|
||||
|
||||
#ifndef __VKD3D_SHADER_PRIVATE_H
|
||||
#define __VKD3D_SHADER_PRIVATE_H
|
||||
|
||||
#include "vkd3d_common.h"
|
||||
#include "vkd3d_memory.h"
|
||||
#include "vkd3d_shader.h"
|
||||
#include "list.h"
|
||||
|
||||
#include <assert.h>
|
||||
#include <inttypes.h>
|
||||
#include <limits.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
#define VKD3D_VEC4_SIZE 4
|
||||
|
||||
#endif /* __VKD3D_SHADER_PRIVATE_H */
|
Reference in New Issue
Block a user