mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
50 lines
1.4 KiB
C
50 lines
1.4 KiB
C
|
/*
|
||
|
* 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_H
|
||
|
#define __VKD3D_SHADER_H
|
||
|
|
||
|
#include "vkd3d.h"
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
extern "C" {
|
||
|
#endif /* __cplusplus */
|
||
|
|
||
|
enum vkd3d_shader_compiler_option
|
||
|
{
|
||
|
VKD3D_SHADER_FLIP_Y = 0x00000001,
|
||
|
|
||
|
VKD3D_SHADER_COMPILER_OPTIONS_FORCE_32_BIT = 0x7fffffff,
|
||
|
};
|
||
|
|
||
|
struct vkd3d_shader_code
|
||
|
{
|
||
|
const void *code;
|
||
|
size_t size;
|
||
|
};
|
||
|
|
||
|
HRESULT vkd3d_shader_compile_dxbc(const struct vkd3d_shader_code *dxbc,
|
||
|
struct vkd3d_shader_code *spirv, uint32_t compiler_options);
|
||
|
void vkd3d_shader_free_shader_code(struct vkd3d_shader_code *code);
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
}
|
||
|
#endif /* __cplusplus */
|
||
|
|
||
|
#endif /* __VKD3D_SHADER_H */
|