VirtualBox

source: vbox/trunk/src/VBox/Devices/Graphics/DevVGA-SVGA3d-dx-shader.h@ 88803

Last change on this file since 88803 was 88803, checked in by vboxsync, 4 years ago

Devices/Graphics: more DX commands; disassemble shaders for debug log. bugref:9830

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.9 KB
Line 
1/* $Id: DevVGA-SVGA3d-dx-shader.h 88803 2021-04-30 13:23:05Z vboxsync $ */
2/** @file
3 * DevVGA - VMWare SVGA device - VGPU10+ (DX) shader utilities.
4 */
5
6/*
7 * Copyright (C) 2020-2021 Oracle Corporation
8 *
9 * This file is part of VirtualBox Open Source Edition (OSE), as
10 * available from http://www.virtualbox.org. This file is free software;
11 * you can redistribute it and/or modify it under the terms of the GNU
12 * General Public License (GPL) as published by the Free Software
13 * Foundation, in version 2 as it comes in the "COPYING" file of the
14 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
15 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
16 */
17
18#ifndef VBOX_INCLUDED_SRC_Graphics_DevVGA_SVGA3d_dx_shader_h
19#define VBOX_INCLUDED_SRC_Graphics_DevVGA_SVGA3d_dx_shader_h
20#ifndef RT_WITHOUT_PRAGMA_ONCE
21# pragma once
22#endif
23
24#ifndef VMSVGA3D_DX
25# error "This include file is for VMSVGA3D_DX."
26#endif
27
28#include <iprt/types.h>
29
30/* GCC complains that 'ISO C++ prohibits anonymous structs' when "-Wpedantic" is enabled. */
31#if RT_GNUC_PREREQ(4, 6)
32# pragma GCC diagnostic push
33# pragma GCC diagnostic ignored "-Wpedantic"
34#endif
35/* VMSVGA headers. */
36#pragma pack(1) /* VMSVGA structures are '__packed'. */
37#include <svga3d_reg.h>
38#include <VGPU10ShaderTokens.h>
39#pragma pack()
40#if RT_GNUC_PREREQ(4, 6)
41# pragma GCC diagnostic pop
42#endif
43
44typedef struct DXShaderInfo
45{
46 VGPU10_PROGRAM_TYPE enmProgramType;
47 uint32_t cInputSignature;
48 uint32_t cOutputSignature;
49 uint32_t cPatchConstantSignature;
50 SVGA3dDXSignatureEntry aInputSignature[32];
51 SVGA3dDXSignatureEntry aOutputSignature[32];
52 SVGA3dDXSignatureEntry aPatchConstantSignature[32];
53} DXShaderInfo;
54
55int DXShaderParse(void const *pvCode, uint32_t cbCode, DXShaderInfo *pInfo);
56int DXShaderCreateDXBC(DXShaderInfo const *pInfo, void const *pvShader, uint32_t cbShader, void **ppvDXBC, uint32_t *pcbDXBC);
57
58#endif /* !VBOX_INCLUDED_SRC_Graphics_DevVGA_SVGA3d_dx_shader_h */
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette