mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-01-19 08:01:50 +00:00
Merge branch 'master' into ItemSharing
This commit is contained in:
commit
22f04bb689
80 changed files with 11047 additions and 1824 deletions
104
auto-setup-linux.sh
Executable file
104
auto-setup-linux.sh
Executable file
|
@ -0,0 +1,104 @@
|
||||||
|
#!/bin/bash
|
||||||
|
#**
|
||||||
|
#** auto-setup-linux.sh
|
||||||
|
#** Automatic (easy) setup and build script for Linux
|
||||||
|
#**
|
||||||
|
#** Note that this script assumes you have both 'git' and 'cmake' installed properly and in your PATH!
|
||||||
|
#** This script also assumes you have installed a build system that cmake can automatically detect.
|
||||||
|
#** Such as GCC or Clang. Requires appropriate supporting libraries installed too!
|
||||||
|
#** Without these items, this script will FAIL! So make sure you have your build environment properly
|
||||||
|
#** set up in order for this script to succeed.
|
||||||
|
#**
|
||||||
|
#** The purpose of this script is to get someone easily going with a full working compile of GZDoom.
|
||||||
|
#** This allows anyone to make simple changes or tweaks to the engine as they see fit and easily
|
||||||
|
#** compile their own copy without having to follow complex instructions to get it working.
|
||||||
|
#** Every build environment is different, and every computer system is different - this should work
|
||||||
|
#** in most typical systems under Windows but it may fail under certain types of systems or conditions.
|
||||||
|
#** Not guaranteed to work and your mileage will vary.
|
||||||
|
#**
|
||||||
|
#** Prerequisite Packages used in testing (from Linux Mint-XFCE):
|
||||||
|
#** nasm autoconf libtool libsystemd-dev clang-15 libx11-dev libsdl2-dev libgtk-3-dev
|
||||||
|
#**
|
||||||
|
#**---------------------------------------------------------------------------
|
||||||
|
#** Copyright 2024 Rachael Alexanderson and the GZDoom team
|
||||||
|
#** All rights reserved.
|
||||||
|
#**
|
||||||
|
#** Redistribution and use in source and binary forms, with or without
|
||||||
|
#** modification, are permitted provided that the following conditions
|
||||||
|
#** are met:
|
||||||
|
#**
|
||||||
|
#** 1. Redistributions of source code must retain the above copyright
|
||||||
|
#** notice, this list of conditions and the following disclaimer.
|
||||||
|
#** 2. Redistributions in binary form must reproduce the above copyright
|
||||||
|
#** notice, this list of conditions and the following disclaimer in the
|
||||||
|
#** documentation and/or other materials provided with the distribution.
|
||||||
|
#** 3. The name of the author may not be used to endorse or promote products
|
||||||
|
#** derived from this software without specific prior written permission.
|
||||||
|
#**
|
||||||
|
#** THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
|
||||||
|
#** IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
||||||
|
#** OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||||
|
#** IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||||
|
#** INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||||
|
#** NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||||
|
#** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||||
|
#** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
#** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||||
|
#** THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
#**---------------------------------------------------------------------------
|
||||||
|
#**
|
||||||
|
|
||||||
|
# -- Always operate within the build folder
|
||||||
|
BUILDFOLDER=$(dirname "$0")/build
|
||||||
|
|
||||||
|
if [ ! -d "$BUILDFOLDER" ]; then
|
||||||
|
mkdir "$BUILDFOLDER"
|
||||||
|
fi
|
||||||
|
cd "$BUILDFOLDER"
|
||||||
|
|
||||||
|
if [ -d "vcpkg" ]; then
|
||||||
|
git -C ./vcpkg pull
|
||||||
|
fi
|
||||||
|
if [ ! -d "vcpkg" ]; then
|
||||||
|
git clone https://github.com/microsoft/vcpkg
|
||||||
|
fi
|
||||||
|
if [ -d "zmusic" ]; then
|
||||||
|
git -C ./zmusic fetch
|
||||||
|
fi
|
||||||
|
if [ ! -d "zmusic" ]; then
|
||||||
|
git clone https://github.com/zdoom/zmusic
|
||||||
|
fi
|
||||||
|
if [ -d "zmusic" ]; then
|
||||||
|
git -C ./zmusic checkout 1.1.12
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ ! -d "zmusic/build" ]; then
|
||||||
|
mkdir zmusic/build
|
||||||
|
fi
|
||||||
|
if [ ! -d "vcpkg_installed" ]; then
|
||||||
|
mkdir vcpkg_installed
|
||||||
|
fi
|
||||||
|
|
||||||
|
cmake -S ./zmusic -B ./zmusic/build \
|
||||||
|
-DCMAKE_TOOLCHAIN_FILE=../vcpkg/scripts/buildsystems/vcpkg.cmake \
|
||||||
|
-DVCPKG_LIBSNDFILE=1 \
|
||||||
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
||||||
|
-DVCPKG_INSTALLLED_DIR=../vcpkg_installed/
|
||||||
|
pushd ./zmusic/build
|
||||||
|
make -j $(nproc)
|
||||||
|
popd
|
||||||
|
|
||||||
|
cmake -S .. -B . \
|
||||||
|
-DCMAKE_TOOLCHAIN_FILE=./vcpkg/scripts/buildsystems/vcpkg.cmake \
|
||||||
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
||||||
|
-DVCPKG_INSTALLLED_DIR=./vcpkg_installed/
|
||||||
|
make -j $(nproc); rc=$?
|
||||||
|
|
||||||
|
# -- If successful, show the build
|
||||||
|
if [ $rc -eq 0 ]; then
|
||||||
|
if [ -f gzdoom ]; then
|
||||||
|
xdg-open .
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
exit $rc
|
|
@ -19,7 +19,7 @@ goto aftercopyright
|
||||||
** Not guaranteed to work and your mileage will vary.
|
** Not guaranteed to work and your mileage will vary.
|
||||||
**
|
**
|
||||||
**---------------------------------------------------------------------------
|
**---------------------------------------------------------------------------
|
||||||
** Copyright 2023 Rachael Alexanderson and the GZDoom team
|
** Copyright 2023-2024 Rachael Alexanderson and the GZDoom team
|
||||||
** All rights reserved.
|
** All rights reserved.
|
||||||
**
|
**
|
||||||
** Redistribution and use in source and binary forms, with or without
|
** Redistribution and use in source and binary forms, with or without
|
||||||
|
|
|
@ -10,9 +10,15 @@ if(ZMUSIC_INCLUDE_DIR AND ZMUSIC_LIBRARIES)
|
||||||
set(ZMUSIC_FIND_QUIETLY TRUE)
|
set(ZMUSIC_FIND_QUIETLY TRUE)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
find_path(ZMUSIC_INCLUDE_DIR zmusic.h)
|
find_path(ZMUSIC_INCLUDE_DIR zmusic.h
|
||||||
|
HINTS
|
||||||
|
${CMAKE_SOURCE_DIR}/build/zmusic/include
|
||||||
|
)
|
||||||
|
|
||||||
find_library(ZMUSIC_LIBRARIES NAMES zmusic)
|
find_library(ZMUSIC_LIBRARIES NAMES zmusic
|
||||||
|
HINTS
|
||||||
|
${CMAKE_SOURCE_DIR}/build/zmusic/build/source
|
||||||
|
)
|
||||||
mark_as_advanced(ZMUSIC_LIBRARIES ZMUSIC_INCLUDE_DIR)
|
mark_as_advanced(ZMUSIC_LIBRARIES ZMUSIC_INCLUDE_DIR)
|
||||||
|
|
||||||
# handle the QUIETLY and REQUIRED arguments and set ZMUSIC_FOUND to TRUE if
|
# handle the QUIETLY and REQUIRED arguments and set ZMUSIC_FOUND to TRUE if
|
||||||
|
|
312
libraries/ZVulkan/include/vk_video/vulkan_video_codec_h264std.h
Normal file
312
libraries/ZVulkan/include/vk_video/vulkan_video_codec_h264std.h
Normal file
|
@ -0,0 +1,312 @@
|
||||||
|
#ifndef VULKAN_VIDEO_CODEC_H264STD_H_
|
||||||
|
#define VULKAN_VIDEO_CODEC_H264STD_H_ 1
|
||||||
|
|
||||||
|
/*
|
||||||
|
** Copyright 2015-2023 The Khronos Group Inc.
|
||||||
|
**
|
||||||
|
** SPDX-License-Identifier: Apache-2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
** This header is generated from the Khronos Vulkan XML API Registry.
|
||||||
|
**
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// vulkan_video_codec_h264std is a preprocessor guard. Do not pass it to API calls.
|
||||||
|
#define vulkan_video_codec_h264std 1
|
||||||
|
#include "vulkan_video_codecs_common.h"
|
||||||
|
#define STD_VIDEO_H264_CPB_CNT_LIST_SIZE 32
|
||||||
|
#define STD_VIDEO_H264_SCALING_LIST_4X4_NUM_LISTS 6
|
||||||
|
#define STD_VIDEO_H264_SCALING_LIST_4X4_NUM_ELEMENTS 16
|
||||||
|
#define STD_VIDEO_H264_SCALING_LIST_8X8_NUM_LISTS 6
|
||||||
|
#define STD_VIDEO_H264_SCALING_LIST_8X8_NUM_ELEMENTS 64
|
||||||
|
#define STD_VIDEO_H264_MAX_NUM_LIST_REF 32
|
||||||
|
#define STD_VIDEO_H264_MAX_CHROMA_PLANES 2
|
||||||
|
#define STD_VIDEO_H264_NO_REFERENCE_PICTURE 0xFF
|
||||||
|
|
||||||
|
typedef enum StdVideoH264ChromaFormatIdc {
|
||||||
|
STD_VIDEO_H264_CHROMA_FORMAT_IDC_MONOCHROME = 0,
|
||||||
|
STD_VIDEO_H264_CHROMA_FORMAT_IDC_420 = 1,
|
||||||
|
STD_VIDEO_H264_CHROMA_FORMAT_IDC_422 = 2,
|
||||||
|
STD_VIDEO_H264_CHROMA_FORMAT_IDC_444 = 3,
|
||||||
|
STD_VIDEO_H264_CHROMA_FORMAT_IDC_INVALID = 0x7FFFFFFF,
|
||||||
|
STD_VIDEO_H264_CHROMA_FORMAT_IDC_MAX_ENUM = 0x7FFFFFFF
|
||||||
|
} StdVideoH264ChromaFormatIdc;
|
||||||
|
|
||||||
|
typedef enum StdVideoH264ProfileIdc {
|
||||||
|
STD_VIDEO_H264_PROFILE_IDC_BASELINE = 66,
|
||||||
|
STD_VIDEO_H264_PROFILE_IDC_MAIN = 77,
|
||||||
|
STD_VIDEO_H264_PROFILE_IDC_HIGH = 100,
|
||||||
|
STD_VIDEO_H264_PROFILE_IDC_HIGH_444_PREDICTIVE = 244,
|
||||||
|
STD_VIDEO_H264_PROFILE_IDC_INVALID = 0x7FFFFFFF,
|
||||||
|
STD_VIDEO_H264_PROFILE_IDC_MAX_ENUM = 0x7FFFFFFF
|
||||||
|
} StdVideoH264ProfileIdc;
|
||||||
|
|
||||||
|
typedef enum StdVideoH264LevelIdc {
|
||||||
|
STD_VIDEO_H264_LEVEL_IDC_1_0 = 0,
|
||||||
|
STD_VIDEO_H264_LEVEL_IDC_1_1 = 1,
|
||||||
|
STD_VIDEO_H264_LEVEL_IDC_1_2 = 2,
|
||||||
|
STD_VIDEO_H264_LEVEL_IDC_1_3 = 3,
|
||||||
|
STD_VIDEO_H264_LEVEL_IDC_2_0 = 4,
|
||||||
|
STD_VIDEO_H264_LEVEL_IDC_2_1 = 5,
|
||||||
|
STD_VIDEO_H264_LEVEL_IDC_2_2 = 6,
|
||||||
|
STD_VIDEO_H264_LEVEL_IDC_3_0 = 7,
|
||||||
|
STD_VIDEO_H264_LEVEL_IDC_3_1 = 8,
|
||||||
|
STD_VIDEO_H264_LEVEL_IDC_3_2 = 9,
|
||||||
|
STD_VIDEO_H264_LEVEL_IDC_4_0 = 10,
|
||||||
|
STD_VIDEO_H264_LEVEL_IDC_4_1 = 11,
|
||||||
|
STD_VIDEO_H264_LEVEL_IDC_4_2 = 12,
|
||||||
|
STD_VIDEO_H264_LEVEL_IDC_5_0 = 13,
|
||||||
|
STD_VIDEO_H264_LEVEL_IDC_5_1 = 14,
|
||||||
|
STD_VIDEO_H264_LEVEL_IDC_5_2 = 15,
|
||||||
|
STD_VIDEO_H264_LEVEL_IDC_6_0 = 16,
|
||||||
|
STD_VIDEO_H264_LEVEL_IDC_6_1 = 17,
|
||||||
|
STD_VIDEO_H264_LEVEL_IDC_6_2 = 18,
|
||||||
|
STD_VIDEO_H264_LEVEL_IDC_INVALID = 0x7FFFFFFF,
|
||||||
|
STD_VIDEO_H264_LEVEL_IDC_MAX_ENUM = 0x7FFFFFFF
|
||||||
|
} StdVideoH264LevelIdc;
|
||||||
|
|
||||||
|
typedef enum StdVideoH264PocType {
|
||||||
|
STD_VIDEO_H264_POC_TYPE_0 = 0,
|
||||||
|
STD_VIDEO_H264_POC_TYPE_1 = 1,
|
||||||
|
STD_VIDEO_H264_POC_TYPE_2 = 2,
|
||||||
|
STD_VIDEO_H264_POC_TYPE_INVALID = 0x7FFFFFFF,
|
||||||
|
STD_VIDEO_H264_POC_TYPE_MAX_ENUM = 0x7FFFFFFF
|
||||||
|
} StdVideoH264PocType;
|
||||||
|
|
||||||
|
typedef enum StdVideoH264AspectRatioIdc {
|
||||||
|
STD_VIDEO_H264_ASPECT_RATIO_IDC_UNSPECIFIED = 0,
|
||||||
|
STD_VIDEO_H264_ASPECT_RATIO_IDC_SQUARE = 1,
|
||||||
|
STD_VIDEO_H264_ASPECT_RATIO_IDC_12_11 = 2,
|
||||||
|
STD_VIDEO_H264_ASPECT_RATIO_IDC_10_11 = 3,
|
||||||
|
STD_VIDEO_H264_ASPECT_RATIO_IDC_16_11 = 4,
|
||||||
|
STD_VIDEO_H264_ASPECT_RATIO_IDC_40_33 = 5,
|
||||||
|
STD_VIDEO_H264_ASPECT_RATIO_IDC_24_11 = 6,
|
||||||
|
STD_VIDEO_H264_ASPECT_RATIO_IDC_20_11 = 7,
|
||||||
|
STD_VIDEO_H264_ASPECT_RATIO_IDC_32_11 = 8,
|
||||||
|
STD_VIDEO_H264_ASPECT_RATIO_IDC_80_33 = 9,
|
||||||
|
STD_VIDEO_H264_ASPECT_RATIO_IDC_18_11 = 10,
|
||||||
|
STD_VIDEO_H264_ASPECT_RATIO_IDC_15_11 = 11,
|
||||||
|
STD_VIDEO_H264_ASPECT_RATIO_IDC_64_33 = 12,
|
||||||
|
STD_VIDEO_H264_ASPECT_RATIO_IDC_160_99 = 13,
|
||||||
|
STD_VIDEO_H264_ASPECT_RATIO_IDC_4_3 = 14,
|
||||||
|
STD_VIDEO_H264_ASPECT_RATIO_IDC_3_2 = 15,
|
||||||
|
STD_VIDEO_H264_ASPECT_RATIO_IDC_2_1 = 16,
|
||||||
|
STD_VIDEO_H264_ASPECT_RATIO_IDC_EXTENDED_SAR = 255,
|
||||||
|
STD_VIDEO_H264_ASPECT_RATIO_IDC_INVALID = 0x7FFFFFFF,
|
||||||
|
STD_VIDEO_H264_ASPECT_RATIO_IDC_MAX_ENUM = 0x7FFFFFFF
|
||||||
|
} StdVideoH264AspectRatioIdc;
|
||||||
|
|
||||||
|
typedef enum StdVideoH264WeightedBipredIdc {
|
||||||
|
STD_VIDEO_H264_WEIGHTED_BIPRED_IDC_DEFAULT = 0,
|
||||||
|
STD_VIDEO_H264_WEIGHTED_BIPRED_IDC_EXPLICIT = 1,
|
||||||
|
STD_VIDEO_H264_WEIGHTED_BIPRED_IDC_IMPLICIT = 2,
|
||||||
|
STD_VIDEO_H264_WEIGHTED_BIPRED_IDC_INVALID = 0x7FFFFFFF,
|
||||||
|
STD_VIDEO_H264_WEIGHTED_BIPRED_IDC_MAX_ENUM = 0x7FFFFFFF
|
||||||
|
} StdVideoH264WeightedBipredIdc;
|
||||||
|
|
||||||
|
typedef enum StdVideoH264ModificationOfPicNumsIdc {
|
||||||
|
STD_VIDEO_H264_MODIFICATION_OF_PIC_NUMS_IDC_SHORT_TERM_SUBTRACT = 0,
|
||||||
|
STD_VIDEO_H264_MODIFICATION_OF_PIC_NUMS_IDC_SHORT_TERM_ADD = 1,
|
||||||
|
STD_VIDEO_H264_MODIFICATION_OF_PIC_NUMS_IDC_LONG_TERM = 2,
|
||||||
|
STD_VIDEO_H264_MODIFICATION_OF_PIC_NUMS_IDC_END = 3,
|
||||||
|
STD_VIDEO_H264_MODIFICATION_OF_PIC_NUMS_IDC_INVALID = 0x7FFFFFFF,
|
||||||
|
STD_VIDEO_H264_MODIFICATION_OF_PIC_NUMS_IDC_MAX_ENUM = 0x7FFFFFFF
|
||||||
|
} StdVideoH264ModificationOfPicNumsIdc;
|
||||||
|
|
||||||
|
typedef enum StdVideoH264MemMgmtControlOp {
|
||||||
|
STD_VIDEO_H264_MEM_MGMT_CONTROL_OP_END = 0,
|
||||||
|
STD_VIDEO_H264_MEM_MGMT_CONTROL_OP_UNMARK_SHORT_TERM = 1,
|
||||||
|
STD_VIDEO_H264_MEM_MGMT_CONTROL_OP_UNMARK_LONG_TERM = 2,
|
||||||
|
STD_VIDEO_H264_MEM_MGMT_CONTROL_OP_MARK_LONG_TERM = 3,
|
||||||
|
STD_VIDEO_H264_MEM_MGMT_CONTROL_OP_SET_MAX_LONG_TERM_INDEX = 4,
|
||||||
|
STD_VIDEO_H264_MEM_MGMT_CONTROL_OP_UNMARK_ALL = 5,
|
||||||
|
STD_VIDEO_H264_MEM_MGMT_CONTROL_OP_MARK_CURRENT_AS_LONG_TERM = 6,
|
||||||
|
STD_VIDEO_H264_MEM_MGMT_CONTROL_OP_INVALID = 0x7FFFFFFF,
|
||||||
|
STD_VIDEO_H264_MEM_MGMT_CONTROL_OP_MAX_ENUM = 0x7FFFFFFF
|
||||||
|
} StdVideoH264MemMgmtControlOp;
|
||||||
|
|
||||||
|
typedef enum StdVideoH264CabacInitIdc {
|
||||||
|
STD_VIDEO_H264_CABAC_INIT_IDC_0 = 0,
|
||||||
|
STD_VIDEO_H264_CABAC_INIT_IDC_1 = 1,
|
||||||
|
STD_VIDEO_H264_CABAC_INIT_IDC_2 = 2,
|
||||||
|
STD_VIDEO_H264_CABAC_INIT_IDC_INVALID = 0x7FFFFFFF,
|
||||||
|
STD_VIDEO_H264_CABAC_INIT_IDC_MAX_ENUM = 0x7FFFFFFF
|
||||||
|
} StdVideoH264CabacInitIdc;
|
||||||
|
|
||||||
|
typedef enum StdVideoH264DisableDeblockingFilterIdc {
|
||||||
|
STD_VIDEO_H264_DISABLE_DEBLOCKING_FILTER_IDC_DISABLED = 0,
|
||||||
|
STD_VIDEO_H264_DISABLE_DEBLOCKING_FILTER_IDC_ENABLED = 1,
|
||||||
|
STD_VIDEO_H264_DISABLE_DEBLOCKING_FILTER_IDC_PARTIAL = 2,
|
||||||
|
STD_VIDEO_H264_DISABLE_DEBLOCKING_FILTER_IDC_INVALID = 0x7FFFFFFF,
|
||||||
|
STD_VIDEO_H264_DISABLE_DEBLOCKING_FILTER_IDC_MAX_ENUM = 0x7FFFFFFF
|
||||||
|
} StdVideoH264DisableDeblockingFilterIdc;
|
||||||
|
|
||||||
|
typedef enum StdVideoH264SliceType {
|
||||||
|
STD_VIDEO_H264_SLICE_TYPE_P = 0,
|
||||||
|
STD_VIDEO_H264_SLICE_TYPE_B = 1,
|
||||||
|
STD_VIDEO_H264_SLICE_TYPE_I = 2,
|
||||||
|
STD_VIDEO_H264_SLICE_TYPE_INVALID = 0x7FFFFFFF,
|
||||||
|
STD_VIDEO_H264_SLICE_TYPE_MAX_ENUM = 0x7FFFFFFF
|
||||||
|
} StdVideoH264SliceType;
|
||||||
|
|
||||||
|
typedef enum StdVideoH264PictureType {
|
||||||
|
STD_VIDEO_H264_PICTURE_TYPE_P = 0,
|
||||||
|
STD_VIDEO_H264_PICTURE_TYPE_B = 1,
|
||||||
|
STD_VIDEO_H264_PICTURE_TYPE_I = 2,
|
||||||
|
STD_VIDEO_H264_PICTURE_TYPE_IDR = 5,
|
||||||
|
STD_VIDEO_H264_PICTURE_TYPE_INVALID = 0x7FFFFFFF,
|
||||||
|
STD_VIDEO_H264_PICTURE_TYPE_MAX_ENUM = 0x7FFFFFFF
|
||||||
|
} StdVideoH264PictureType;
|
||||||
|
|
||||||
|
typedef enum StdVideoH264NonVclNaluType {
|
||||||
|
STD_VIDEO_H264_NON_VCL_NALU_TYPE_SPS = 0,
|
||||||
|
STD_VIDEO_H264_NON_VCL_NALU_TYPE_PPS = 1,
|
||||||
|
STD_VIDEO_H264_NON_VCL_NALU_TYPE_AUD = 2,
|
||||||
|
STD_VIDEO_H264_NON_VCL_NALU_TYPE_PREFIX = 3,
|
||||||
|
STD_VIDEO_H264_NON_VCL_NALU_TYPE_END_OF_SEQUENCE = 4,
|
||||||
|
STD_VIDEO_H264_NON_VCL_NALU_TYPE_END_OF_STREAM = 5,
|
||||||
|
STD_VIDEO_H264_NON_VCL_NALU_TYPE_PRECODED = 6,
|
||||||
|
STD_VIDEO_H264_NON_VCL_NALU_TYPE_INVALID = 0x7FFFFFFF,
|
||||||
|
STD_VIDEO_H264_NON_VCL_NALU_TYPE_MAX_ENUM = 0x7FFFFFFF
|
||||||
|
} StdVideoH264NonVclNaluType;
|
||||||
|
typedef struct StdVideoH264SpsVuiFlags {
|
||||||
|
uint32_t aspect_ratio_info_present_flag : 1;
|
||||||
|
uint32_t overscan_info_present_flag : 1;
|
||||||
|
uint32_t overscan_appropriate_flag : 1;
|
||||||
|
uint32_t video_signal_type_present_flag : 1;
|
||||||
|
uint32_t video_full_range_flag : 1;
|
||||||
|
uint32_t color_description_present_flag : 1;
|
||||||
|
uint32_t chroma_loc_info_present_flag : 1;
|
||||||
|
uint32_t timing_info_present_flag : 1;
|
||||||
|
uint32_t fixed_frame_rate_flag : 1;
|
||||||
|
uint32_t bitstream_restriction_flag : 1;
|
||||||
|
uint32_t nal_hrd_parameters_present_flag : 1;
|
||||||
|
uint32_t vcl_hrd_parameters_present_flag : 1;
|
||||||
|
} StdVideoH264SpsVuiFlags;
|
||||||
|
|
||||||
|
typedef struct StdVideoH264HrdParameters {
|
||||||
|
uint8_t cpb_cnt_minus1;
|
||||||
|
uint8_t bit_rate_scale;
|
||||||
|
uint8_t cpb_size_scale;
|
||||||
|
uint8_t reserved1;
|
||||||
|
uint32_t bit_rate_value_minus1[STD_VIDEO_H264_CPB_CNT_LIST_SIZE];
|
||||||
|
uint32_t cpb_size_value_minus1[STD_VIDEO_H264_CPB_CNT_LIST_SIZE];
|
||||||
|
uint8_t cbr_flag[STD_VIDEO_H264_CPB_CNT_LIST_SIZE];
|
||||||
|
uint32_t initial_cpb_removal_delay_length_minus1;
|
||||||
|
uint32_t cpb_removal_delay_length_minus1;
|
||||||
|
uint32_t dpb_output_delay_length_minus1;
|
||||||
|
uint32_t time_offset_length;
|
||||||
|
} StdVideoH264HrdParameters;
|
||||||
|
|
||||||
|
typedef struct StdVideoH264SequenceParameterSetVui {
|
||||||
|
StdVideoH264SpsVuiFlags flags;
|
||||||
|
StdVideoH264AspectRatioIdc aspect_ratio_idc;
|
||||||
|
uint16_t sar_width;
|
||||||
|
uint16_t sar_height;
|
||||||
|
uint8_t video_format;
|
||||||
|
uint8_t colour_primaries;
|
||||||
|
uint8_t transfer_characteristics;
|
||||||
|
uint8_t matrix_coefficients;
|
||||||
|
uint32_t num_units_in_tick;
|
||||||
|
uint32_t time_scale;
|
||||||
|
uint8_t max_num_reorder_frames;
|
||||||
|
uint8_t max_dec_frame_buffering;
|
||||||
|
uint8_t chroma_sample_loc_type_top_field;
|
||||||
|
uint8_t chroma_sample_loc_type_bottom_field;
|
||||||
|
uint32_t reserved1;
|
||||||
|
const StdVideoH264HrdParameters* pHrdParameters;
|
||||||
|
} StdVideoH264SequenceParameterSetVui;
|
||||||
|
|
||||||
|
typedef struct StdVideoH264SpsFlags {
|
||||||
|
uint32_t constraint_set0_flag : 1;
|
||||||
|
uint32_t constraint_set1_flag : 1;
|
||||||
|
uint32_t constraint_set2_flag : 1;
|
||||||
|
uint32_t constraint_set3_flag : 1;
|
||||||
|
uint32_t constraint_set4_flag : 1;
|
||||||
|
uint32_t constraint_set5_flag : 1;
|
||||||
|
uint32_t direct_8x8_inference_flag : 1;
|
||||||
|
uint32_t mb_adaptive_frame_field_flag : 1;
|
||||||
|
uint32_t frame_mbs_only_flag : 1;
|
||||||
|
uint32_t delta_pic_order_always_zero_flag : 1;
|
||||||
|
uint32_t separate_colour_plane_flag : 1;
|
||||||
|
uint32_t gaps_in_frame_num_value_allowed_flag : 1;
|
||||||
|
uint32_t qpprime_y_zero_transform_bypass_flag : 1;
|
||||||
|
uint32_t frame_cropping_flag : 1;
|
||||||
|
uint32_t seq_scaling_matrix_present_flag : 1;
|
||||||
|
uint32_t vui_parameters_present_flag : 1;
|
||||||
|
} StdVideoH264SpsFlags;
|
||||||
|
|
||||||
|
typedef struct StdVideoH264ScalingLists {
|
||||||
|
uint16_t scaling_list_present_mask;
|
||||||
|
uint16_t use_default_scaling_matrix_mask;
|
||||||
|
uint8_t ScalingList4x4[STD_VIDEO_H264_SCALING_LIST_4X4_NUM_LISTS][STD_VIDEO_H264_SCALING_LIST_4X4_NUM_ELEMENTS];
|
||||||
|
uint8_t ScalingList8x8[STD_VIDEO_H264_SCALING_LIST_8X8_NUM_LISTS][STD_VIDEO_H264_SCALING_LIST_8X8_NUM_ELEMENTS];
|
||||||
|
} StdVideoH264ScalingLists;
|
||||||
|
|
||||||
|
typedef struct StdVideoH264SequenceParameterSet {
|
||||||
|
StdVideoH264SpsFlags flags;
|
||||||
|
StdVideoH264ProfileIdc profile_idc;
|
||||||
|
StdVideoH264LevelIdc level_idc;
|
||||||
|
StdVideoH264ChromaFormatIdc chroma_format_idc;
|
||||||
|
uint8_t seq_parameter_set_id;
|
||||||
|
uint8_t bit_depth_luma_minus8;
|
||||||
|
uint8_t bit_depth_chroma_minus8;
|
||||||
|
uint8_t log2_max_frame_num_minus4;
|
||||||
|
StdVideoH264PocType pic_order_cnt_type;
|
||||||
|
int32_t offset_for_non_ref_pic;
|
||||||
|
int32_t offset_for_top_to_bottom_field;
|
||||||
|
uint8_t log2_max_pic_order_cnt_lsb_minus4;
|
||||||
|
uint8_t num_ref_frames_in_pic_order_cnt_cycle;
|
||||||
|
uint8_t max_num_ref_frames;
|
||||||
|
uint8_t reserved1;
|
||||||
|
uint32_t pic_width_in_mbs_minus1;
|
||||||
|
uint32_t pic_height_in_map_units_minus1;
|
||||||
|
uint32_t frame_crop_left_offset;
|
||||||
|
uint32_t frame_crop_right_offset;
|
||||||
|
uint32_t frame_crop_top_offset;
|
||||||
|
uint32_t frame_crop_bottom_offset;
|
||||||
|
uint32_t reserved2;
|
||||||
|
const int32_t* pOffsetForRefFrame;
|
||||||
|
const StdVideoH264ScalingLists* pScalingLists;
|
||||||
|
const StdVideoH264SequenceParameterSetVui* pSequenceParameterSetVui;
|
||||||
|
} StdVideoH264SequenceParameterSet;
|
||||||
|
|
||||||
|
typedef struct StdVideoH264PpsFlags {
|
||||||
|
uint32_t transform_8x8_mode_flag : 1;
|
||||||
|
uint32_t redundant_pic_cnt_present_flag : 1;
|
||||||
|
uint32_t constrained_intra_pred_flag : 1;
|
||||||
|
uint32_t deblocking_filter_control_present_flag : 1;
|
||||||
|
uint32_t weighted_pred_flag : 1;
|
||||||
|
uint32_t bottom_field_pic_order_in_frame_present_flag : 1;
|
||||||
|
uint32_t entropy_coding_mode_flag : 1;
|
||||||
|
uint32_t pic_scaling_matrix_present_flag : 1;
|
||||||
|
} StdVideoH264PpsFlags;
|
||||||
|
|
||||||
|
typedef struct StdVideoH264PictureParameterSet {
|
||||||
|
StdVideoH264PpsFlags flags;
|
||||||
|
uint8_t seq_parameter_set_id;
|
||||||
|
uint8_t pic_parameter_set_id;
|
||||||
|
uint8_t num_ref_idx_l0_default_active_minus1;
|
||||||
|
uint8_t num_ref_idx_l1_default_active_minus1;
|
||||||
|
StdVideoH264WeightedBipredIdc weighted_bipred_idc;
|
||||||
|
int8_t pic_init_qp_minus26;
|
||||||
|
int8_t pic_init_qs_minus26;
|
||||||
|
int8_t chroma_qp_index_offset;
|
||||||
|
int8_t second_chroma_qp_index_offset;
|
||||||
|
const StdVideoH264ScalingLists* pScalingLists;
|
||||||
|
} StdVideoH264PictureParameterSet;
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif
|
|
@ -0,0 +1,77 @@
|
||||||
|
#ifndef VULKAN_VIDEO_CODEC_H264STD_DECODE_H_
|
||||||
|
#define VULKAN_VIDEO_CODEC_H264STD_DECODE_H_ 1
|
||||||
|
|
||||||
|
/*
|
||||||
|
** Copyright 2015-2023 The Khronos Group Inc.
|
||||||
|
**
|
||||||
|
** SPDX-License-Identifier: Apache-2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
** This header is generated from the Khronos Vulkan XML API Registry.
|
||||||
|
**
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// vulkan_video_codec_h264std_decode is a preprocessor guard. Do not pass it to API calls.
|
||||||
|
#define vulkan_video_codec_h264std_decode 1
|
||||||
|
#include "vulkan_video_codec_h264std.h"
|
||||||
|
|
||||||
|
#define VK_STD_VULKAN_VIDEO_CODEC_H264_DECODE_API_VERSION_1_0_0 VK_MAKE_VIDEO_STD_VERSION(1, 0, 0)
|
||||||
|
|
||||||
|
#define VK_STD_VULKAN_VIDEO_CODEC_H264_DECODE_SPEC_VERSION VK_STD_VULKAN_VIDEO_CODEC_H264_DECODE_API_VERSION_1_0_0
|
||||||
|
#define VK_STD_VULKAN_VIDEO_CODEC_H264_DECODE_EXTENSION_NAME "VK_STD_vulkan_video_codec_h264_decode"
|
||||||
|
#define STD_VIDEO_DECODE_H264_FIELD_ORDER_COUNT_LIST_SIZE 2
|
||||||
|
|
||||||
|
typedef enum StdVideoDecodeH264FieldOrderCount {
|
||||||
|
STD_VIDEO_DECODE_H264_FIELD_ORDER_COUNT_TOP = 0,
|
||||||
|
STD_VIDEO_DECODE_H264_FIELD_ORDER_COUNT_BOTTOM = 1,
|
||||||
|
STD_VIDEO_DECODE_H264_FIELD_ORDER_COUNT_INVALID = 0x7FFFFFFF,
|
||||||
|
STD_VIDEO_DECODE_H264_FIELD_ORDER_COUNT_MAX_ENUM = 0x7FFFFFFF
|
||||||
|
} StdVideoDecodeH264FieldOrderCount;
|
||||||
|
typedef struct StdVideoDecodeH264PictureInfoFlags {
|
||||||
|
uint32_t field_pic_flag : 1;
|
||||||
|
uint32_t is_intra : 1;
|
||||||
|
uint32_t IdrPicFlag : 1;
|
||||||
|
uint32_t bottom_field_flag : 1;
|
||||||
|
uint32_t is_reference : 1;
|
||||||
|
uint32_t complementary_field_pair : 1;
|
||||||
|
} StdVideoDecodeH264PictureInfoFlags;
|
||||||
|
|
||||||
|
typedef struct StdVideoDecodeH264PictureInfo {
|
||||||
|
StdVideoDecodeH264PictureInfoFlags flags;
|
||||||
|
uint8_t seq_parameter_set_id;
|
||||||
|
uint8_t pic_parameter_set_id;
|
||||||
|
uint8_t reserved1;
|
||||||
|
uint8_t reserved2;
|
||||||
|
uint16_t frame_num;
|
||||||
|
uint16_t idr_pic_id;
|
||||||
|
int32_t PicOrderCnt[STD_VIDEO_DECODE_H264_FIELD_ORDER_COUNT_LIST_SIZE];
|
||||||
|
} StdVideoDecodeH264PictureInfo;
|
||||||
|
|
||||||
|
typedef struct StdVideoDecodeH264ReferenceInfoFlags {
|
||||||
|
uint32_t top_field_flag : 1;
|
||||||
|
uint32_t bottom_field_flag : 1;
|
||||||
|
uint32_t used_for_long_term_reference : 1;
|
||||||
|
uint32_t is_non_existing : 1;
|
||||||
|
} StdVideoDecodeH264ReferenceInfoFlags;
|
||||||
|
|
||||||
|
typedef struct StdVideoDecodeH264ReferenceInfo {
|
||||||
|
StdVideoDecodeH264ReferenceInfoFlags flags;
|
||||||
|
uint16_t FrameNum;
|
||||||
|
uint16_t reserved;
|
||||||
|
int32_t PicOrderCnt[STD_VIDEO_DECODE_H264_FIELD_ORDER_COUNT_LIST_SIZE];
|
||||||
|
} StdVideoDecodeH264ReferenceInfo;
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif
|
|
@ -0,0 +1,147 @@
|
||||||
|
#ifndef VULKAN_VIDEO_CODEC_H264STD_ENCODE_H_
|
||||||
|
#define VULKAN_VIDEO_CODEC_H264STD_ENCODE_H_ 1
|
||||||
|
|
||||||
|
/*
|
||||||
|
** Copyright 2015-2023 The Khronos Group Inc.
|
||||||
|
**
|
||||||
|
** SPDX-License-Identifier: Apache-2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
** This header is generated from the Khronos Vulkan XML API Registry.
|
||||||
|
**
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// vulkan_video_codec_h264std_encode is a preprocessor guard. Do not pass it to API calls.
|
||||||
|
#define vulkan_video_codec_h264std_encode 1
|
||||||
|
#include "vulkan_video_codec_h264std.h"
|
||||||
|
// Vulkan 0.9 provisional Vulkan video H.264 encode std specification version number
|
||||||
|
#define VK_STD_VULKAN_VIDEO_CODEC_H264_ENCODE_API_VERSION_0_9_11 VK_MAKE_VIDEO_STD_VERSION(0, 9, 11)
|
||||||
|
|
||||||
|
#define VK_STD_VULKAN_VIDEO_CODEC_H264_ENCODE_SPEC_VERSION VK_STD_VULKAN_VIDEO_CODEC_H264_ENCODE_API_VERSION_0_9_11
|
||||||
|
#define VK_STD_VULKAN_VIDEO_CODEC_H264_ENCODE_EXTENSION_NAME "VK_STD_vulkan_video_codec_h264_encode"
|
||||||
|
typedef struct StdVideoEncodeH264WeightTableFlags {
|
||||||
|
uint32_t luma_weight_l0_flag;
|
||||||
|
uint32_t chroma_weight_l0_flag;
|
||||||
|
uint32_t luma_weight_l1_flag;
|
||||||
|
uint32_t chroma_weight_l1_flag;
|
||||||
|
} StdVideoEncodeH264WeightTableFlags;
|
||||||
|
|
||||||
|
typedef struct StdVideoEncodeH264WeightTable {
|
||||||
|
StdVideoEncodeH264WeightTableFlags flags;
|
||||||
|
uint8_t luma_log2_weight_denom;
|
||||||
|
uint8_t chroma_log2_weight_denom;
|
||||||
|
int8_t luma_weight_l0[STD_VIDEO_H264_MAX_NUM_LIST_REF];
|
||||||
|
int8_t luma_offset_l0[STD_VIDEO_H264_MAX_NUM_LIST_REF];
|
||||||
|
int8_t chroma_weight_l0[STD_VIDEO_H264_MAX_NUM_LIST_REF][STD_VIDEO_H264_MAX_CHROMA_PLANES];
|
||||||
|
int8_t chroma_offset_l0[STD_VIDEO_H264_MAX_NUM_LIST_REF][STD_VIDEO_H264_MAX_CHROMA_PLANES];
|
||||||
|
int8_t luma_weight_l1[STD_VIDEO_H264_MAX_NUM_LIST_REF];
|
||||||
|
int8_t luma_offset_l1[STD_VIDEO_H264_MAX_NUM_LIST_REF];
|
||||||
|
int8_t chroma_weight_l1[STD_VIDEO_H264_MAX_NUM_LIST_REF][STD_VIDEO_H264_MAX_CHROMA_PLANES];
|
||||||
|
int8_t chroma_offset_l1[STD_VIDEO_H264_MAX_NUM_LIST_REF][STD_VIDEO_H264_MAX_CHROMA_PLANES];
|
||||||
|
} StdVideoEncodeH264WeightTable;
|
||||||
|
|
||||||
|
typedef struct StdVideoEncodeH264SliceHeaderFlags {
|
||||||
|
uint32_t direct_spatial_mv_pred_flag : 1;
|
||||||
|
uint32_t num_ref_idx_active_override_flag : 1;
|
||||||
|
uint32_t reserved : 30;
|
||||||
|
} StdVideoEncodeH264SliceHeaderFlags;
|
||||||
|
|
||||||
|
typedef struct StdVideoEncodeH264PictureInfoFlags {
|
||||||
|
uint32_t IdrPicFlag : 1;
|
||||||
|
uint32_t is_reference : 1;
|
||||||
|
uint32_t no_output_of_prior_pics_flag : 1;
|
||||||
|
uint32_t long_term_reference_flag : 1;
|
||||||
|
uint32_t adaptive_ref_pic_marking_mode_flag : 1;
|
||||||
|
uint32_t reserved : 27;
|
||||||
|
} StdVideoEncodeH264PictureInfoFlags;
|
||||||
|
|
||||||
|
typedef struct StdVideoEncodeH264ReferenceInfoFlags {
|
||||||
|
uint32_t used_for_long_term_reference : 1;
|
||||||
|
uint32_t reserved : 31;
|
||||||
|
} StdVideoEncodeH264ReferenceInfoFlags;
|
||||||
|
|
||||||
|
typedef struct StdVideoEncodeH264ReferenceListsInfoFlags {
|
||||||
|
uint32_t ref_pic_list_modification_flag_l0 : 1;
|
||||||
|
uint32_t ref_pic_list_modification_flag_l1 : 1;
|
||||||
|
uint32_t reserved : 30;
|
||||||
|
} StdVideoEncodeH264ReferenceListsInfoFlags;
|
||||||
|
|
||||||
|
typedef struct StdVideoEncodeH264RefListModEntry {
|
||||||
|
StdVideoH264ModificationOfPicNumsIdc modification_of_pic_nums_idc;
|
||||||
|
uint16_t abs_diff_pic_num_minus1;
|
||||||
|
uint16_t long_term_pic_num;
|
||||||
|
} StdVideoEncodeH264RefListModEntry;
|
||||||
|
|
||||||
|
typedef struct StdVideoEncodeH264RefPicMarkingEntry {
|
||||||
|
StdVideoH264MemMgmtControlOp memory_management_control_operation;
|
||||||
|
uint16_t difference_of_pic_nums_minus1;
|
||||||
|
uint16_t long_term_pic_num;
|
||||||
|
uint16_t long_term_frame_idx;
|
||||||
|
uint16_t max_long_term_frame_idx_plus1;
|
||||||
|
} StdVideoEncodeH264RefPicMarkingEntry;
|
||||||
|
|
||||||
|
typedef struct StdVideoEncodeH264ReferenceListsInfo {
|
||||||
|
StdVideoEncodeH264ReferenceListsInfoFlags flags;
|
||||||
|
uint8_t num_ref_idx_l0_active_minus1;
|
||||||
|
uint8_t num_ref_idx_l1_active_minus1;
|
||||||
|
uint8_t RefPicList0[STD_VIDEO_H264_MAX_NUM_LIST_REF];
|
||||||
|
uint8_t RefPicList1[STD_VIDEO_H264_MAX_NUM_LIST_REF];
|
||||||
|
uint8_t refList0ModOpCount;
|
||||||
|
uint8_t refList1ModOpCount;
|
||||||
|
uint8_t refPicMarkingOpCount;
|
||||||
|
uint8_t reserved1[7];
|
||||||
|
const StdVideoEncodeH264RefListModEntry* pRefList0ModOperations;
|
||||||
|
const StdVideoEncodeH264RefListModEntry* pRefList1ModOperations;
|
||||||
|
const StdVideoEncodeH264RefPicMarkingEntry* pRefPicMarkingOperations;
|
||||||
|
} StdVideoEncodeH264ReferenceListsInfo;
|
||||||
|
|
||||||
|
typedef struct StdVideoEncodeH264PictureInfo {
|
||||||
|
StdVideoEncodeH264PictureInfoFlags flags;
|
||||||
|
uint8_t seq_parameter_set_id;
|
||||||
|
uint8_t pic_parameter_set_id;
|
||||||
|
uint16_t idr_pic_id;
|
||||||
|
StdVideoH264PictureType primary_pic_type;
|
||||||
|
uint32_t frame_num;
|
||||||
|
int32_t PicOrderCnt;
|
||||||
|
uint8_t temporal_id;
|
||||||
|
uint8_t reserved1[3];
|
||||||
|
const StdVideoEncodeH264ReferenceListsInfo* pRefLists;
|
||||||
|
} StdVideoEncodeH264PictureInfo;
|
||||||
|
|
||||||
|
typedef struct StdVideoEncodeH264ReferenceInfo {
|
||||||
|
StdVideoEncodeH264ReferenceInfoFlags flags;
|
||||||
|
StdVideoH264PictureType primary_pic_type;
|
||||||
|
uint32_t FrameNum;
|
||||||
|
int32_t PicOrderCnt;
|
||||||
|
uint16_t long_term_pic_num;
|
||||||
|
uint16_t long_term_frame_idx;
|
||||||
|
uint8_t temporal_id;
|
||||||
|
} StdVideoEncodeH264ReferenceInfo;
|
||||||
|
|
||||||
|
typedef struct StdVideoEncodeH264SliceHeader {
|
||||||
|
StdVideoEncodeH264SliceHeaderFlags flags;
|
||||||
|
uint32_t first_mb_in_slice;
|
||||||
|
StdVideoH264SliceType slice_type;
|
||||||
|
int8_t slice_alpha_c0_offset_div2;
|
||||||
|
int8_t slice_beta_offset_div2;
|
||||||
|
int8_t slice_qp_delta;
|
||||||
|
uint8_t reserved1;
|
||||||
|
StdVideoH264CabacInitIdc cabac_init_idc;
|
||||||
|
StdVideoH264DisableDeblockingFilterIdc disable_deblocking_filter_idc;
|
||||||
|
const StdVideoEncodeH264WeightTable* pWeightTable;
|
||||||
|
} StdVideoEncodeH264SliceHeader;
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif
|
446
libraries/ZVulkan/include/vk_video/vulkan_video_codec_h265std.h
Normal file
446
libraries/ZVulkan/include/vk_video/vulkan_video_codec_h265std.h
Normal file
|
@ -0,0 +1,446 @@
|
||||||
|
#ifndef VULKAN_VIDEO_CODEC_H265STD_H_
|
||||||
|
#define VULKAN_VIDEO_CODEC_H265STD_H_ 1
|
||||||
|
|
||||||
|
/*
|
||||||
|
** Copyright 2015-2023 The Khronos Group Inc.
|
||||||
|
**
|
||||||
|
** SPDX-License-Identifier: Apache-2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
** This header is generated from the Khronos Vulkan XML API Registry.
|
||||||
|
**
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// vulkan_video_codec_h265std is a preprocessor guard. Do not pass it to API calls.
|
||||||
|
#define vulkan_video_codec_h265std 1
|
||||||
|
#include "vulkan_video_codecs_common.h"
|
||||||
|
#define STD_VIDEO_H265_CPB_CNT_LIST_SIZE 32
|
||||||
|
#define STD_VIDEO_H265_SUBLAYERS_LIST_SIZE 7
|
||||||
|
#define STD_VIDEO_H265_SCALING_LIST_4X4_NUM_LISTS 6
|
||||||
|
#define STD_VIDEO_H265_SCALING_LIST_4X4_NUM_ELEMENTS 16
|
||||||
|
#define STD_VIDEO_H265_SCALING_LIST_8X8_NUM_LISTS 6
|
||||||
|
#define STD_VIDEO_H265_SCALING_LIST_8X8_NUM_ELEMENTS 64
|
||||||
|
#define STD_VIDEO_H265_SCALING_LIST_16X16_NUM_LISTS 6
|
||||||
|
#define STD_VIDEO_H265_SCALING_LIST_16X16_NUM_ELEMENTS 64
|
||||||
|
#define STD_VIDEO_H265_SCALING_LIST_32X32_NUM_LISTS 2
|
||||||
|
#define STD_VIDEO_H265_SCALING_LIST_32X32_NUM_ELEMENTS 64
|
||||||
|
#define STD_VIDEO_H265_CHROMA_QP_OFFSET_LIST_SIZE 6
|
||||||
|
#define STD_VIDEO_H265_CHROMA_QP_OFFSET_TILE_COLS_LIST_SIZE 19
|
||||||
|
#define STD_VIDEO_H265_CHROMA_QP_OFFSET_TILE_ROWS_LIST_SIZE 21
|
||||||
|
#define STD_VIDEO_H265_PREDICTOR_PALETTE_COMPONENTS_LIST_SIZE 3
|
||||||
|
#define STD_VIDEO_H265_PREDICTOR_PALETTE_COMP_ENTRIES_LIST_SIZE 128
|
||||||
|
#define STD_VIDEO_H265_MAX_NUM_LIST_REF 15
|
||||||
|
#define STD_VIDEO_H265_MAX_CHROMA_PLANES 2
|
||||||
|
#define STD_VIDEO_H265_MAX_SHORT_TERM_REF_PIC_SETS 64
|
||||||
|
#define STD_VIDEO_H265_MAX_DPB_SIZE 16
|
||||||
|
#define STD_VIDEO_H265_MAX_LONG_TERM_REF_PICS_SPS 32
|
||||||
|
#define STD_VIDEO_H265_MAX_LONG_TERM_PICS 16
|
||||||
|
#define STD_VIDEO_H265_MAX_DELTA_POC 48
|
||||||
|
#define STD_VIDEO_H265_NO_REFERENCE_PICTURE 0xFF
|
||||||
|
|
||||||
|
typedef enum StdVideoH265ChromaFormatIdc {
|
||||||
|
STD_VIDEO_H265_CHROMA_FORMAT_IDC_MONOCHROME = 0,
|
||||||
|
STD_VIDEO_H265_CHROMA_FORMAT_IDC_420 = 1,
|
||||||
|
STD_VIDEO_H265_CHROMA_FORMAT_IDC_422 = 2,
|
||||||
|
STD_VIDEO_H265_CHROMA_FORMAT_IDC_444 = 3,
|
||||||
|
STD_VIDEO_H265_CHROMA_FORMAT_IDC_INVALID = 0x7FFFFFFF,
|
||||||
|
STD_VIDEO_H265_CHROMA_FORMAT_IDC_MAX_ENUM = 0x7FFFFFFF
|
||||||
|
} StdVideoH265ChromaFormatIdc;
|
||||||
|
|
||||||
|
typedef enum StdVideoH265ProfileIdc {
|
||||||
|
STD_VIDEO_H265_PROFILE_IDC_MAIN = 1,
|
||||||
|
STD_VIDEO_H265_PROFILE_IDC_MAIN_10 = 2,
|
||||||
|
STD_VIDEO_H265_PROFILE_IDC_MAIN_STILL_PICTURE = 3,
|
||||||
|
STD_VIDEO_H265_PROFILE_IDC_FORMAT_RANGE_EXTENSIONS = 4,
|
||||||
|
STD_VIDEO_H265_PROFILE_IDC_SCC_EXTENSIONS = 9,
|
||||||
|
STD_VIDEO_H265_PROFILE_IDC_INVALID = 0x7FFFFFFF,
|
||||||
|
STD_VIDEO_H265_PROFILE_IDC_MAX_ENUM = 0x7FFFFFFF
|
||||||
|
} StdVideoH265ProfileIdc;
|
||||||
|
|
||||||
|
typedef enum StdVideoH265LevelIdc {
|
||||||
|
STD_VIDEO_H265_LEVEL_IDC_1_0 = 0,
|
||||||
|
STD_VIDEO_H265_LEVEL_IDC_2_0 = 1,
|
||||||
|
STD_VIDEO_H265_LEVEL_IDC_2_1 = 2,
|
||||||
|
STD_VIDEO_H265_LEVEL_IDC_3_0 = 3,
|
||||||
|
STD_VIDEO_H265_LEVEL_IDC_3_1 = 4,
|
||||||
|
STD_VIDEO_H265_LEVEL_IDC_4_0 = 5,
|
||||||
|
STD_VIDEO_H265_LEVEL_IDC_4_1 = 6,
|
||||||
|
STD_VIDEO_H265_LEVEL_IDC_5_0 = 7,
|
||||||
|
STD_VIDEO_H265_LEVEL_IDC_5_1 = 8,
|
||||||
|
STD_VIDEO_H265_LEVEL_IDC_5_2 = 9,
|
||||||
|
STD_VIDEO_H265_LEVEL_IDC_6_0 = 10,
|
||||||
|
STD_VIDEO_H265_LEVEL_IDC_6_1 = 11,
|
||||||
|
STD_VIDEO_H265_LEVEL_IDC_6_2 = 12,
|
||||||
|
STD_VIDEO_H265_LEVEL_IDC_INVALID = 0x7FFFFFFF,
|
||||||
|
STD_VIDEO_H265_LEVEL_IDC_MAX_ENUM = 0x7FFFFFFF
|
||||||
|
} StdVideoH265LevelIdc;
|
||||||
|
|
||||||
|
typedef enum StdVideoH265SliceType {
|
||||||
|
STD_VIDEO_H265_SLICE_TYPE_B = 0,
|
||||||
|
STD_VIDEO_H265_SLICE_TYPE_P = 1,
|
||||||
|
STD_VIDEO_H265_SLICE_TYPE_I = 2,
|
||||||
|
STD_VIDEO_H265_SLICE_TYPE_INVALID = 0x7FFFFFFF,
|
||||||
|
STD_VIDEO_H265_SLICE_TYPE_MAX_ENUM = 0x7FFFFFFF
|
||||||
|
} StdVideoH265SliceType;
|
||||||
|
|
||||||
|
typedef enum StdVideoH265PictureType {
|
||||||
|
STD_VIDEO_H265_PICTURE_TYPE_P = 0,
|
||||||
|
STD_VIDEO_H265_PICTURE_TYPE_B = 1,
|
||||||
|
STD_VIDEO_H265_PICTURE_TYPE_I = 2,
|
||||||
|
STD_VIDEO_H265_PICTURE_TYPE_IDR = 3,
|
||||||
|
STD_VIDEO_H265_PICTURE_TYPE_INVALID = 0x7FFFFFFF,
|
||||||
|
STD_VIDEO_H265_PICTURE_TYPE_MAX_ENUM = 0x7FFFFFFF
|
||||||
|
} StdVideoH265PictureType;
|
||||||
|
|
||||||
|
typedef enum StdVideoH265AspectRatioIdc {
|
||||||
|
STD_VIDEO_H265_ASPECT_RATIO_IDC_UNSPECIFIED = 0,
|
||||||
|
STD_VIDEO_H265_ASPECT_RATIO_IDC_SQUARE = 1,
|
||||||
|
STD_VIDEO_H265_ASPECT_RATIO_IDC_12_11 = 2,
|
||||||
|
STD_VIDEO_H265_ASPECT_RATIO_IDC_10_11 = 3,
|
||||||
|
STD_VIDEO_H265_ASPECT_RATIO_IDC_16_11 = 4,
|
||||||
|
STD_VIDEO_H265_ASPECT_RATIO_IDC_40_33 = 5,
|
||||||
|
STD_VIDEO_H265_ASPECT_RATIO_IDC_24_11 = 6,
|
||||||
|
STD_VIDEO_H265_ASPECT_RATIO_IDC_20_11 = 7,
|
||||||
|
STD_VIDEO_H265_ASPECT_RATIO_IDC_32_11 = 8,
|
||||||
|
STD_VIDEO_H265_ASPECT_RATIO_IDC_80_33 = 9,
|
||||||
|
STD_VIDEO_H265_ASPECT_RATIO_IDC_18_11 = 10,
|
||||||
|
STD_VIDEO_H265_ASPECT_RATIO_IDC_15_11 = 11,
|
||||||
|
STD_VIDEO_H265_ASPECT_RATIO_IDC_64_33 = 12,
|
||||||
|
STD_VIDEO_H265_ASPECT_RATIO_IDC_160_99 = 13,
|
||||||
|
STD_VIDEO_H265_ASPECT_RATIO_IDC_4_3 = 14,
|
||||||
|
STD_VIDEO_H265_ASPECT_RATIO_IDC_3_2 = 15,
|
||||||
|
STD_VIDEO_H265_ASPECT_RATIO_IDC_2_1 = 16,
|
||||||
|
STD_VIDEO_H265_ASPECT_RATIO_IDC_EXTENDED_SAR = 255,
|
||||||
|
STD_VIDEO_H265_ASPECT_RATIO_IDC_INVALID = 0x7FFFFFFF,
|
||||||
|
STD_VIDEO_H265_ASPECT_RATIO_IDC_MAX_ENUM = 0x7FFFFFFF
|
||||||
|
} StdVideoH265AspectRatioIdc;
|
||||||
|
typedef struct StdVideoH265DecPicBufMgr {
|
||||||
|
uint32_t max_latency_increase_plus1[STD_VIDEO_H265_SUBLAYERS_LIST_SIZE];
|
||||||
|
uint8_t max_dec_pic_buffering_minus1[STD_VIDEO_H265_SUBLAYERS_LIST_SIZE];
|
||||||
|
uint8_t max_num_reorder_pics[STD_VIDEO_H265_SUBLAYERS_LIST_SIZE];
|
||||||
|
} StdVideoH265DecPicBufMgr;
|
||||||
|
|
||||||
|
typedef struct StdVideoH265SubLayerHrdParameters {
|
||||||
|
uint32_t bit_rate_value_minus1[STD_VIDEO_H265_CPB_CNT_LIST_SIZE];
|
||||||
|
uint32_t cpb_size_value_minus1[STD_VIDEO_H265_CPB_CNT_LIST_SIZE];
|
||||||
|
uint32_t cpb_size_du_value_minus1[STD_VIDEO_H265_CPB_CNT_LIST_SIZE];
|
||||||
|
uint32_t bit_rate_du_value_minus1[STD_VIDEO_H265_CPB_CNT_LIST_SIZE];
|
||||||
|
uint32_t cbr_flag;
|
||||||
|
} StdVideoH265SubLayerHrdParameters;
|
||||||
|
|
||||||
|
typedef struct StdVideoH265HrdFlags {
|
||||||
|
uint32_t nal_hrd_parameters_present_flag : 1;
|
||||||
|
uint32_t vcl_hrd_parameters_present_flag : 1;
|
||||||
|
uint32_t sub_pic_hrd_params_present_flag : 1;
|
||||||
|
uint32_t sub_pic_cpb_params_in_pic_timing_sei_flag : 1;
|
||||||
|
uint32_t fixed_pic_rate_general_flag : 8;
|
||||||
|
uint32_t fixed_pic_rate_within_cvs_flag : 8;
|
||||||
|
uint32_t low_delay_hrd_flag : 8;
|
||||||
|
} StdVideoH265HrdFlags;
|
||||||
|
|
||||||
|
typedef struct StdVideoH265HrdParameters {
|
||||||
|
StdVideoH265HrdFlags flags;
|
||||||
|
uint8_t tick_divisor_minus2;
|
||||||
|
uint8_t du_cpb_removal_delay_increment_length_minus1;
|
||||||
|
uint8_t dpb_output_delay_du_length_minus1;
|
||||||
|
uint8_t bit_rate_scale;
|
||||||
|
uint8_t cpb_size_scale;
|
||||||
|
uint8_t cpb_size_du_scale;
|
||||||
|
uint8_t initial_cpb_removal_delay_length_minus1;
|
||||||
|
uint8_t au_cpb_removal_delay_length_minus1;
|
||||||
|
uint8_t dpb_output_delay_length_minus1;
|
||||||
|
uint8_t cpb_cnt_minus1[STD_VIDEO_H265_SUBLAYERS_LIST_SIZE];
|
||||||
|
uint16_t elemental_duration_in_tc_minus1[STD_VIDEO_H265_SUBLAYERS_LIST_SIZE];
|
||||||
|
uint16_t reserved[3];
|
||||||
|
const StdVideoH265SubLayerHrdParameters* pSubLayerHrdParametersNal;
|
||||||
|
const StdVideoH265SubLayerHrdParameters* pSubLayerHrdParametersVcl;
|
||||||
|
} StdVideoH265HrdParameters;
|
||||||
|
|
||||||
|
typedef struct StdVideoH265VpsFlags {
|
||||||
|
uint32_t vps_temporal_id_nesting_flag : 1;
|
||||||
|
uint32_t vps_sub_layer_ordering_info_present_flag : 1;
|
||||||
|
uint32_t vps_timing_info_present_flag : 1;
|
||||||
|
uint32_t vps_poc_proportional_to_timing_flag : 1;
|
||||||
|
} StdVideoH265VpsFlags;
|
||||||
|
|
||||||
|
typedef struct StdVideoH265ProfileTierLevelFlags {
|
||||||
|
uint32_t general_tier_flag : 1;
|
||||||
|
uint32_t general_progressive_source_flag : 1;
|
||||||
|
uint32_t general_interlaced_source_flag : 1;
|
||||||
|
uint32_t general_non_packed_constraint_flag : 1;
|
||||||
|
uint32_t general_frame_only_constraint_flag : 1;
|
||||||
|
} StdVideoH265ProfileTierLevelFlags;
|
||||||
|
|
||||||
|
typedef struct StdVideoH265ProfileTierLevel {
|
||||||
|
StdVideoH265ProfileTierLevelFlags flags;
|
||||||
|
StdVideoH265ProfileIdc general_profile_idc;
|
||||||
|
StdVideoH265LevelIdc general_level_idc;
|
||||||
|
} StdVideoH265ProfileTierLevel;
|
||||||
|
|
||||||
|
typedef struct StdVideoH265VideoParameterSet {
|
||||||
|
StdVideoH265VpsFlags flags;
|
||||||
|
uint8_t vps_video_parameter_set_id;
|
||||||
|
uint8_t vps_max_sub_layers_minus1;
|
||||||
|
uint8_t reserved1;
|
||||||
|
uint8_t reserved2;
|
||||||
|
uint32_t vps_num_units_in_tick;
|
||||||
|
uint32_t vps_time_scale;
|
||||||
|
uint32_t vps_num_ticks_poc_diff_one_minus1;
|
||||||
|
uint32_t reserved3;
|
||||||
|
const StdVideoH265DecPicBufMgr* pDecPicBufMgr;
|
||||||
|
const StdVideoH265HrdParameters* pHrdParameters;
|
||||||
|
const StdVideoH265ProfileTierLevel* pProfileTierLevel;
|
||||||
|
} StdVideoH265VideoParameterSet;
|
||||||
|
|
||||||
|
typedef struct StdVideoH265ScalingLists {
|
||||||
|
uint8_t ScalingList4x4[STD_VIDEO_H265_SCALING_LIST_4X4_NUM_LISTS][STD_VIDEO_H265_SCALING_LIST_4X4_NUM_ELEMENTS];
|
||||||
|
uint8_t ScalingList8x8[STD_VIDEO_H265_SCALING_LIST_8X8_NUM_LISTS][STD_VIDEO_H265_SCALING_LIST_8X8_NUM_ELEMENTS];
|
||||||
|
uint8_t ScalingList16x16[STD_VIDEO_H265_SCALING_LIST_16X16_NUM_LISTS][STD_VIDEO_H265_SCALING_LIST_16X16_NUM_ELEMENTS];
|
||||||
|
uint8_t ScalingList32x32[STD_VIDEO_H265_SCALING_LIST_32X32_NUM_LISTS][STD_VIDEO_H265_SCALING_LIST_32X32_NUM_ELEMENTS];
|
||||||
|
uint8_t ScalingListDCCoef16x16[STD_VIDEO_H265_SCALING_LIST_16X16_NUM_LISTS];
|
||||||
|
uint8_t ScalingListDCCoef32x32[STD_VIDEO_H265_SCALING_LIST_32X32_NUM_LISTS];
|
||||||
|
} StdVideoH265ScalingLists;
|
||||||
|
|
||||||
|
typedef struct StdVideoH265SpsVuiFlags {
|
||||||
|
uint32_t aspect_ratio_info_present_flag : 1;
|
||||||
|
uint32_t overscan_info_present_flag : 1;
|
||||||
|
uint32_t overscan_appropriate_flag : 1;
|
||||||
|
uint32_t video_signal_type_present_flag : 1;
|
||||||
|
uint32_t video_full_range_flag : 1;
|
||||||
|
uint32_t colour_description_present_flag : 1;
|
||||||
|
uint32_t chroma_loc_info_present_flag : 1;
|
||||||
|
uint32_t neutral_chroma_indication_flag : 1;
|
||||||
|
uint32_t field_seq_flag : 1;
|
||||||
|
uint32_t frame_field_info_present_flag : 1;
|
||||||
|
uint32_t default_display_window_flag : 1;
|
||||||
|
uint32_t vui_timing_info_present_flag : 1;
|
||||||
|
uint32_t vui_poc_proportional_to_timing_flag : 1;
|
||||||
|
uint32_t vui_hrd_parameters_present_flag : 1;
|
||||||
|
uint32_t bitstream_restriction_flag : 1;
|
||||||
|
uint32_t tiles_fixed_structure_flag : 1;
|
||||||
|
uint32_t motion_vectors_over_pic_boundaries_flag : 1;
|
||||||
|
uint32_t restricted_ref_pic_lists_flag : 1;
|
||||||
|
} StdVideoH265SpsVuiFlags;
|
||||||
|
|
||||||
|
typedef struct StdVideoH265SequenceParameterSetVui {
|
||||||
|
StdVideoH265SpsVuiFlags flags;
|
||||||
|
StdVideoH265AspectRatioIdc aspect_ratio_idc;
|
||||||
|
uint16_t sar_width;
|
||||||
|
uint16_t sar_height;
|
||||||
|
uint8_t video_format;
|
||||||
|
uint8_t colour_primaries;
|
||||||
|
uint8_t transfer_characteristics;
|
||||||
|
uint8_t matrix_coeffs;
|
||||||
|
uint8_t chroma_sample_loc_type_top_field;
|
||||||
|
uint8_t chroma_sample_loc_type_bottom_field;
|
||||||
|
uint8_t reserved1;
|
||||||
|
uint8_t reserved2;
|
||||||
|
uint16_t def_disp_win_left_offset;
|
||||||
|
uint16_t def_disp_win_right_offset;
|
||||||
|
uint16_t def_disp_win_top_offset;
|
||||||
|
uint16_t def_disp_win_bottom_offset;
|
||||||
|
uint32_t vui_num_units_in_tick;
|
||||||
|
uint32_t vui_time_scale;
|
||||||
|
uint32_t vui_num_ticks_poc_diff_one_minus1;
|
||||||
|
uint16_t min_spatial_segmentation_idc;
|
||||||
|
uint16_t reserved3;
|
||||||
|
uint8_t max_bytes_per_pic_denom;
|
||||||
|
uint8_t max_bits_per_min_cu_denom;
|
||||||
|
uint8_t log2_max_mv_length_horizontal;
|
||||||
|
uint8_t log2_max_mv_length_vertical;
|
||||||
|
const StdVideoH265HrdParameters* pHrdParameters;
|
||||||
|
} StdVideoH265SequenceParameterSetVui;
|
||||||
|
|
||||||
|
typedef struct StdVideoH265PredictorPaletteEntries {
|
||||||
|
uint16_t PredictorPaletteEntries[STD_VIDEO_H265_PREDICTOR_PALETTE_COMPONENTS_LIST_SIZE][STD_VIDEO_H265_PREDICTOR_PALETTE_COMP_ENTRIES_LIST_SIZE];
|
||||||
|
} StdVideoH265PredictorPaletteEntries;
|
||||||
|
|
||||||
|
typedef struct StdVideoH265SpsFlags {
|
||||||
|
uint32_t sps_temporal_id_nesting_flag : 1;
|
||||||
|
uint32_t separate_colour_plane_flag : 1;
|
||||||
|
uint32_t conformance_window_flag : 1;
|
||||||
|
uint32_t sps_sub_layer_ordering_info_present_flag : 1;
|
||||||
|
uint32_t scaling_list_enabled_flag : 1;
|
||||||
|
uint32_t sps_scaling_list_data_present_flag : 1;
|
||||||
|
uint32_t amp_enabled_flag : 1;
|
||||||
|
uint32_t sample_adaptive_offset_enabled_flag : 1;
|
||||||
|
uint32_t pcm_enabled_flag : 1;
|
||||||
|
uint32_t pcm_loop_filter_disabled_flag : 1;
|
||||||
|
uint32_t long_term_ref_pics_present_flag : 1;
|
||||||
|
uint32_t sps_temporal_mvp_enabled_flag : 1;
|
||||||
|
uint32_t strong_intra_smoothing_enabled_flag : 1;
|
||||||
|
uint32_t vui_parameters_present_flag : 1;
|
||||||
|
uint32_t sps_extension_present_flag : 1;
|
||||||
|
uint32_t sps_range_extension_flag : 1;
|
||||||
|
uint32_t transform_skip_rotation_enabled_flag : 1;
|
||||||
|
uint32_t transform_skip_context_enabled_flag : 1;
|
||||||
|
uint32_t implicit_rdpcm_enabled_flag : 1;
|
||||||
|
uint32_t explicit_rdpcm_enabled_flag : 1;
|
||||||
|
uint32_t extended_precision_processing_flag : 1;
|
||||||
|
uint32_t intra_smoothing_disabled_flag : 1;
|
||||||
|
uint32_t high_precision_offsets_enabled_flag : 1;
|
||||||
|
uint32_t persistent_rice_adaptation_enabled_flag : 1;
|
||||||
|
uint32_t cabac_bypass_alignment_enabled_flag : 1;
|
||||||
|
uint32_t sps_scc_extension_flag : 1;
|
||||||
|
uint32_t sps_curr_pic_ref_enabled_flag : 1;
|
||||||
|
uint32_t palette_mode_enabled_flag : 1;
|
||||||
|
uint32_t sps_palette_predictor_initializers_present_flag : 1;
|
||||||
|
uint32_t intra_boundary_filtering_disabled_flag : 1;
|
||||||
|
} StdVideoH265SpsFlags;
|
||||||
|
|
||||||
|
typedef struct StdVideoH265ShortTermRefPicSetFlags {
|
||||||
|
uint32_t inter_ref_pic_set_prediction_flag : 1;
|
||||||
|
uint32_t delta_rps_sign : 1;
|
||||||
|
} StdVideoH265ShortTermRefPicSetFlags;
|
||||||
|
|
||||||
|
typedef struct StdVideoH265ShortTermRefPicSet {
|
||||||
|
StdVideoH265ShortTermRefPicSetFlags flags;
|
||||||
|
uint32_t delta_idx_minus1;
|
||||||
|
uint16_t use_delta_flag;
|
||||||
|
uint16_t abs_delta_rps_minus1;
|
||||||
|
uint16_t used_by_curr_pic_flag;
|
||||||
|
uint16_t used_by_curr_pic_s0_flag;
|
||||||
|
uint16_t used_by_curr_pic_s1_flag;
|
||||||
|
uint16_t reserved1;
|
||||||
|
uint8_t reserved2;
|
||||||
|
uint8_t reserved3;
|
||||||
|
uint8_t num_negative_pics;
|
||||||
|
uint8_t num_positive_pics;
|
||||||
|
uint16_t delta_poc_s0_minus1[STD_VIDEO_H265_MAX_DPB_SIZE];
|
||||||
|
uint16_t delta_poc_s1_minus1[STD_VIDEO_H265_MAX_DPB_SIZE];
|
||||||
|
} StdVideoH265ShortTermRefPicSet;
|
||||||
|
|
||||||
|
typedef struct StdVideoH265LongTermRefPicsSps {
|
||||||
|
uint32_t used_by_curr_pic_lt_sps_flag;
|
||||||
|
uint32_t lt_ref_pic_poc_lsb_sps[STD_VIDEO_H265_MAX_LONG_TERM_REF_PICS_SPS];
|
||||||
|
} StdVideoH265LongTermRefPicsSps;
|
||||||
|
|
||||||
|
typedef struct StdVideoH265SequenceParameterSet {
|
||||||
|
StdVideoH265SpsFlags flags;
|
||||||
|
StdVideoH265ChromaFormatIdc chroma_format_idc;
|
||||||
|
uint32_t pic_width_in_luma_samples;
|
||||||
|
uint32_t pic_height_in_luma_samples;
|
||||||
|
uint8_t sps_video_parameter_set_id;
|
||||||
|
uint8_t sps_max_sub_layers_minus1;
|
||||||
|
uint8_t sps_seq_parameter_set_id;
|
||||||
|
uint8_t bit_depth_luma_minus8;
|
||||||
|
uint8_t bit_depth_chroma_minus8;
|
||||||
|
uint8_t log2_max_pic_order_cnt_lsb_minus4;
|
||||||
|
uint8_t log2_min_luma_coding_block_size_minus3;
|
||||||
|
uint8_t log2_diff_max_min_luma_coding_block_size;
|
||||||
|
uint8_t log2_min_luma_transform_block_size_minus2;
|
||||||
|
uint8_t log2_diff_max_min_luma_transform_block_size;
|
||||||
|
uint8_t max_transform_hierarchy_depth_inter;
|
||||||
|
uint8_t max_transform_hierarchy_depth_intra;
|
||||||
|
uint8_t num_short_term_ref_pic_sets;
|
||||||
|
uint8_t num_long_term_ref_pics_sps;
|
||||||
|
uint8_t pcm_sample_bit_depth_luma_minus1;
|
||||||
|
uint8_t pcm_sample_bit_depth_chroma_minus1;
|
||||||
|
uint8_t log2_min_pcm_luma_coding_block_size_minus3;
|
||||||
|
uint8_t log2_diff_max_min_pcm_luma_coding_block_size;
|
||||||
|
uint8_t reserved1;
|
||||||
|
uint8_t reserved2;
|
||||||
|
uint8_t palette_max_size;
|
||||||
|
uint8_t delta_palette_max_predictor_size;
|
||||||
|
uint8_t motion_vector_resolution_control_idc;
|
||||||
|
uint8_t sps_num_palette_predictor_initializers_minus1;
|
||||||
|
uint32_t conf_win_left_offset;
|
||||||
|
uint32_t conf_win_right_offset;
|
||||||
|
uint32_t conf_win_top_offset;
|
||||||
|
uint32_t conf_win_bottom_offset;
|
||||||
|
const StdVideoH265ProfileTierLevel* pProfileTierLevel;
|
||||||
|
const StdVideoH265DecPicBufMgr* pDecPicBufMgr;
|
||||||
|
const StdVideoH265ScalingLists* pScalingLists;
|
||||||
|
const StdVideoH265ShortTermRefPicSet* pShortTermRefPicSet;
|
||||||
|
const StdVideoH265LongTermRefPicsSps* pLongTermRefPicsSps;
|
||||||
|
const StdVideoH265SequenceParameterSetVui* pSequenceParameterSetVui;
|
||||||
|
const StdVideoH265PredictorPaletteEntries* pPredictorPaletteEntries;
|
||||||
|
} StdVideoH265SequenceParameterSet;
|
||||||
|
|
||||||
|
typedef struct StdVideoH265PpsFlags {
|
||||||
|
uint32_t dependent_slice_segments_enabled_flag : 1;
|
||||||
|
uint32_t output_flag_present_flag : 1;
|
||||||
|
uint32_t sign_data_hiding_enabled_flag : 1;
|
||||||
|
uint32_t cabac_init_present_flag : 1;
|
||||||
|
uint32_t constrained_intra_pred_flag : 1;
|
||||||
|
uint32_t transform_skip_enabled_flag : 1;
|
||||||
|
uint32_t cu_qp_delta_enabled_flag : 1;
|
||||||
|
uint32_t pps_slice_chroma_qp_offsets_present_flag : 1;
|
||||||
|
uint32_t weighted_pred_flag : 1;
|
||||||
|
uint32_t weighted_bipred_flag : 1;
|
||||||
|
uint32_t transquant_bypass_enabled_flag : 1;
|
||||||
|
uint32_t tiles_enabled_flag : 1;
|
||||||
|
uint32_t entropy_coding_sync_enabled_flag : 1;
|
||||||
|
uint32_t uniform_spacing_flag : 1;
|
||||||
|
uint32_t loop_filter_across_tiles_enabled_flag : 1;
|
||||||
|
uint32_t pps_loop_filter_across_slices_enabled_flag : 1;
|
||||||
|
uint32_t deblocking_filter_control_present_flag : 1;
|
||||||
|
uint32_t deblocking_filter_override_enabled_flag : 1;
|
||||||
|
uint32_t pps_deblocking_filter_disabled_flag : 1;
|
||||||
|
uint32_t pps_scaling_list_data_present_flag : 1;
|
||||||
|
uint32_t lists_modification_present_flag : 1;
|
||||||
|
uint32_t slice_segment_header_extension_present_flag : 1;
|
||||||
|
uint32_t pps_extension_present_flag : 1;
|
||||||
|
uint32_t cross_component_prediction_enabled_flag : 1;
|
||||||
|
uint32_t chroma_qp_offset_list_enabled_flag : 1;
|
||||||
|
uint32_t pps_curr_pic_ref_enabled_flag : 1;
|
||||||
|
uint32_t residual_adaptive_colour_transform_enabled_flag : 1;
|
||||||
|
uint32_t pps_slice_act_qp_offsets_present_flag : 1;
|
||||||
|
uint32_t pps_palette_predictor_initializers_present_flag : 1;
|
||||||
|
uint32_t monochrome_palette_flag : 1;
|
||||||
|
uint32_t pps_range_extension_flag : 1;
|
||||||
|
} StdVideoH265PpsFlags;
|
||||||
|
|
||||||
|
typedef struct StdVideoH265PictureParameterSet {
|
||||||
|
StdVideoH265PpsFlags flags;
|
||||||
|
uint8_t pps_pic_parameter_set_id;
|
||||||
|
uint8_t pps_seq_parameter_set_id;
|
||||||
|
uint8_t sps_video_parameter_set_id;
|
||||||
|
uint8_t num_extra_slice_header_bits;
|
||||||
|
uint8_t num_ref_idx_l0_default_active_minus1;
|
||||||
|
uint8_t num_ref_idx_l1_default_active_minus1;
|
||||||
|
int8_t init_qp_minus26;
|
||||||
|
uint8_t diff_cu_qp_delta_depth;
|
||||||
|
int8_t pps_cb_qp_offset;
|
||||||
|
int8_t pps_cr_qp_offset;
|
||||||
|
int8_t pps_beta_offset_div2;
|
||||||
|
int8_t pps_tc_offset_div2;
|
||||||
|
uint8_t log2_parallel_merge_level_minus2;
|
||||||
|
uint8_t log2_max_transform_skip_block_size_minus2;
|
||||||
|
uint8_t diff_cu_chroma_qp_offset_depth;
|
||||||
|
uint8_t chroma_qp_offset_list_len_minus1;
|
||||||
|
int8_t cb_qp_offset_list[STD_VIDEO_H265_CHROMA_QP_OFFSET_LIST_SIZE];
|
||||||
|
int8_t cr_qp_offset_list[STD_VIDEO_H265_CHROMA_QP_OFFSET_LIST_SIZE];
|
||||||
|
uint8_t log2_sao_offset_scale_luma;
|
||||||
|
uint8_t log2_sao_offset_scale_chroma;
|
||||||
|
int8_t pps_act_y_qp_offset_plus5;
|
||||||
|
int8_t pps_act_cb_qp_offset_plus5;
|
||||||
|
int8_t pps_act_cr_qp_offset_plus3;
|
||||||
|
uint8_t pps_num_palette_predictor_initializers;
|
||||||
|
uint8_t luma_bit_depth_entry_minus8;
|
||||||
|
uint8_t chroma_bit_depth_entry_minus8;
|
||||||
|
uint8_t num_tile_columns_minus1;
|
||||||
|
uint8_t num_tile_rows_minus1;
|
||||||
|
uint8_t reserved1;
|
||||||
|
uint8_t reserved2;
|
||||||
|
uint16_t column_width_minus1[STD_VIDEO_H265_CHROMA_QP_OFFSET_TILE_COLS_LIST_SIZE];
|
||||||
|
uint16_t row_height_minus1[STD_VIDEO_H265_CHROMA_QP_OFFSET_TILE_ROWS_LIST_SIZE];
|
||||||
|
uint32_t reserved3;
|
||||||
|
const StdVideoH265ScalingLists* pScalingLists;
|
||||||
|
const StdVideoH265PredictorPaletteEntries* pPredictorPaletteEntries;
|
||||||
|
} StdVideoH265PictureParameterSet;
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif
|
|
@ -0,0 +1,67 @@
|
||||||
|
#ifndef VULKAN_VIDEO_CODEC_H265STD_DECODE_H_
|
||||||
|
#define VULKAN_VIDEO_CODEC_H265STD_DECODE_H_ 1
|
||||||
|
|
||||||
|
/*
|
||||||
|
** Copyright 2015-2023 The Khronos Group Inc.
|
||||||
|
**
|
||||||
|
** SPDX-License-Identifier: Apache-2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
** This header is generated from the Khronos Vulkan XML API Registry.
|
||||||
|
**
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// vulkan_video_codec_h265std_decode is a preprocessor guard. Do not pass it to API calls.
|
||||||
|
#define vulkan_video_codec_h265std_decode 1
|
||||||
|
#include "vulkan_video_codec_h265std.h"
|
||||||
|
|
||||||
|
#define VK_STD_VULKAN_VIDEO_CODEC_H265_DECODE_API_VERSION_1_0_0 VK_MAKE_VIDEO_STD_VERSION(1, 0, 0)
|
||||||
|
|
||||||
|
#define VK_STD_VULKAN_VIDEO_CODEC_H265_DECODE_SPEC_VERSION VK_STD_VULKAN_VIDEO_CODEC_H265_DECODE_API_VERSION_1_0_0
|
||||||
|
#define VK_STD_VULKAN_VIDEO_CODEC_H265_DECODE_EXTENSION_NAME "VK_STD_vulkan_video_codec_h265_decode"
|
||||||
|
#define STD_VIDEO_DECODE_H265_REF_PIC_SET_LIST_SIZE 8
|
||||||
|
typedef struct StdVideoDecodeH265PictureInfoFlags {
|
||||||
|
uint32_t IrapPicFlag : 1;
|
||||||
|
uint32_t IdrPicFlag : 1;
|
||||||
|
uint32_t IsReference : 1;
|
||||||
|
uint32_t short_term_ref_pic_set_sps_flag : 1;
|
||||||
|
} StdVideoDecodeH265PictureInfoFlags;
|
||||||
|
|
||||||
|
typedef struct StdVideoDecodeH265PictureInfo {
|
||||||
|
StdVideoDecodeH265PictureInfoFlags flags;
|
||||||
|
uint8_t sps_video_parameter_set_id;
|
||||||
|
uint8_t pps_seq_parameter_set_id;
|
||||||
|
uint8_t pps_pic_parameter_set_id;
|
||||||
|
uint8_t NumDeltaPocsOfRefRpsIdx;
|
||||||
|
int32_t PicOrderCntVal;
|
||||||
|
uint16_t NumBitsForSTRefPicSetInSlice;
|
||||||
|
uint16_t reserved;
|
||||||
|
uint8_t RefPicSetStCurrBefore[STD_VIDEO_DECODE_H265_REF_PIC_SET_LIST_SIZE];
|
||||||
|
uint8_t RefPicSetStCurrAfter[STD_VIDEO_DECODE_H265_REF_PIC_SET_LIST_SIZE];
|
||||||
|
uint8_t RefPicSetLtCurr[STD_VIDEO_DECODE_H265_REF_PIC_SET_LIST_SIZE];
|
||||||
|
} StdVideoDecodeH265PictureInfo;
|
||||||
|
|
||||||
|
typedef struct StdVideoDecodeH265ReferenceInfoFlags {
|
||||||
|
uint32_t used_for_long_term_reference : 1;
|
||||||
|
uint32_t unused_for_reference : 1;
|
||||||
|
} StdVideoDecodeH265ReferenceInfoFlags;
|
||||||
|
|
||||||
|
typedef struct StdVideoDecodeH265ReferenceInfo {
|
||||||
|
StdVideoDecodeH265ReferenceInfoFlags flags;
|
||||||
|
int32_t PicOrderCntVal;
|
||||||
|
} StdVideoDecodeH265ReferenceInfo;
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif
|
|
@ -0,0 +1,157 @@
|
||||||
|
#ifndef VULKAN_VIDEO_CODEC_H265STD_ENCODE_H_
|
||||||
|
#define VULKAN_VIDEO_CODEC_H265STD_ENCODE_H_ 1
|
||||||
|
|
||||||
|
/*
|
||||||
|
** Copyright 2015-2023 The Khronos Group Inc.
|
||||||
|
**
|
||||||
|
** SPDX-License-Identifier: Apache-2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
** This header is generated from the Khronos Vulkan XML API Registry.
|
||||||
|
**
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// vulkan_video_codec_h265std_encode is a preprocessor guard. Do not pass it to API calls.
|
||||||
|
#define vulkan_video_codec_h265std_encode 1
|
||||||
|
#include "vulkan_video_codec_h265std.h"
|
||||||
|
// Vulkan 0.9 provisional Vulkan video H.265 encode std specification version number
|
||||||
|
#define VK_STD_VULKAN_VIDEO_CODEC_H265_ENCODE_API_VERSION_0_9_12 VK_MAKE_VIDEO_STD_VERSION(0, 9, 12)
|
||||||
|
|
||||||
|
#define VK_STD_VULKAN_VIDEO_CODEC_H265_ENCODE_SPEC_VERSION VK_STD_VULKAN_VIDEO_CODEC_H265_ENCODE_API_VERSION_0_9_12
|
||||||
|
#define VK_STD_VULKAN_VIDEO_CODEC_H265_ENCODE_EXTENSION_NAME "VK_STD_vulkan_video_codec_h265_encode"
|
||||||
|
typedef struct StdVideoEncodeH265WeightTableFlags {
|
||||||
|
uint16_t luma_weight_l0_flag;
|
||||||
|
uint16_t chroma_weight_l0_flag;
|
||||||
|
uint16_t luma_weight_l1_flag;
|
||||||
|
uint16_t chroma_weight_l1_flag;
|
||||||
|
} StdVideoEncodeH265WeightTableFlags;
|
||||||
|
|
||||||
|
typedef struct StdVideoEncodeH265WeightTable {
|
||||||
|
StdVideoEncodeH265WeightTableFlags flags;
|
||||||
|
uint8_t luma_log2_weight_denom;
|
||||||
|
int8_t delta_chroma_log2_weight_denom;
|
||||||
|
int8_t delta_luma_weight_l0[STD_VIDEO_H265_MAX_NUM_LIST_REF];
|
||||||
|
int8_t luma_offset_l0[STD_VIDEO_H265_MAX_NUM_LIST_REF];
|
||||||
|
int8_t delta_chroma_weight_l0[STD_VIDEO_H265_MAX_NUM_LIST_REF][STD_VIDEO_H265_MAX_CHROMA_PLANES];
|
||||||
|
int8_t delta_chroma_offset_l0[STD_VIDEO_H265_MAX_NUM_LIST_REF][STD_VIDEO_H265_MAX_CHROMA_PLANES];
|
||||||
|
int8_t delta_luma_weight_l1[STD_VIDEO_H265_MAX_NUM_LIST_REF];
|
||||||
|
int8_t luma_offset_l1[STD_VIDEO_H265_MAX_NUM_LIST_REF];
|
||||||
|
int8_t delta_chroma_weight_l1[STD_VIDEO_H265_MAX_NUM_LIST_REF][STD_VIDEO_H265_MAX_CHROMA_PLANES];
|
||||||
|
int8_t delta_chroma_offset_l1[STD_VIDEO_H265_MAX_NUM_LIST_REF][STD_VIDEO_H265_MAX_CHROMA_PLANES];
|
||||||
|
} StdVideoEncodeH265WeightTable;
|
||||||
|
|
||||||
|
typedef struct StdVideoEncodeH265SliceSegmentHeaderFlags {
|
||||||
|
uint32_t first_slice_segment_in_pic_flag : 1;
|
||||||
|
uint32_t dependent_slice_segment_flag : 1;
|
||||||
|
uint32_t slice_sao_luma_flag : 1;
|
||||||
|
uint32_t slice_sao_chroma_flag : 1;
|
||||||
|
uint32_t num_ref_idx_active_override_flag : 1;
|
||||||
|
uint32_t mvd_l1_zero_flag : 1;
|
||||||
|
uint32_t cabac_init_flag : 1;
|
||||||
|
uint32_t cu_chroma_qp_offset_enabled_flag : 1;
|
||||||
|
uint32_t deblocking_filter_override_flag : 1;
|
||||||
|
uint32_t slice_deblocking_filter_disabled_flag : 1;
|
||||||
|
uint32_t collocated_from_l0_flag : 1;
|
||||||
|
uint32_t slice_loop_filter_across_slices_enabled_flag : 1;
|
||||||
|
uint32_t reserved : 20;
|
||||||
|
} StdVideoEncodeH265SliceSegmentHeaderFlags;
|
||||||
|
|
||||||
|
typedef struct StdVideoEncodeH265SliceSegmentHeader {
|
||||||
|
StdVideoEncodeH265SliceSegmentHeaderFlags flags;
|
||||||
|
StdVideoH265SliceType slice_type;
|
||||||
|
uint32_t slice_segment_address;
|
||||||
|
uint8_t collocated_ref_idx;
|
||||||
|
uint8_t MaxNumMergeCand;
|
||||||
|
int8_t slice_cb_qp_offset;
|
||||||
|
int8_t slice_cr_qp_offset;
|
||||||
|
int8_t slice_beta_offset_div2;
|
||||||
|
int8_t slice_tc_offset_div2;
|
||||||
|
int8_t slice_act_y_qp_offset;
|
||||||
|
int8_t slice_act_cb_qp_offset;
|
||||||
|
int8_t slice_act_cr_qp_offset;
|
||||||
|
int8_t slice_qp_delta;
|
||||||
|
uint16_t reserved1;
|
||||||
|
const StdVideoEncodeH265WeightTable* pWeightTable;
|
||||||
|
} StdVideoEncodeH265SliceSegmentHeader;
|
||||||
|
|
||||||
|
typedef struct StdVideoEncodeH265ReferenceListsInfoFlags {
|
||||||
|
uint32_t ref_pic_list_modification_flag_l0 : 1;
|
||||||
|
uint32_t ref_pic_list_modification_flag_l1 : 1;
|
||||||
|
uint32_t reserved : 30;
|
||||||
|
} StdVideoEncodeH265ReferenceListsInfoFlags;
|
||||||
|
|
||||||
|
typedef struct StdVideoEncodeH265ReferenceListsInfo {
|
||||||
|
StdVideoEncodeH265ReferenceListsInfoFlags flags;
|
||||||
|
uint8_t num_ref_idx_l0_active_minus1;
|
||||||
|
uint8_t num_ref_idx_l1_active_minus1;
|
||||||
|
uint8_t RefPicList0[STD_VIDEO_H265_MAX_NUM_LIST_REF];
|
||||||
|
uint8_t RefPicList1[STD_VIDEO_H265_MAX_NUM_LIST_REF];
|
||||||
|
uint8_t list_entry_l0[STD_VIDEO_H265_MAX_NUM_LIST_REF];
|
||||||
|
uint8_t list_entry_l1[STD_VIDEO_H265_MAX_NUM_LIST_REF];
|
||||||
|
} StdVideoEncodeH265ReferenceListsInfo;
|
||||||
|
|
||||||
|
typedef struct StdVideoEncodeH265PictureInfoFlags {
|
||||||
|
uint32_t is_reference : 1;
|
||||||
|
uint32_t IrapPicFlag : 1;
|
||||||
|
uint32_t used_for_long_term_reference : 1;
|
||||||
|
uint32_t discardable_flag : 1;
|
||||||
|
uint32_t cross_layer_bla_flag : 1;
|
||||||
|
uint32_t pic_output_flag : 1;
|
||||||
|
uint32_t no_output_of_prior_pics_flag : 1;
|
||||||
|
uint32_t short_term_ref_pic_set_sps_flag : 1;
|
||||||
|
uint32_t slice_temporal_mvp_enabled_flag : 1;
|
||||||
|
uint32_t reserved : 23;
|
||||||
|
} StdVideoEncodeH265PictureInfoFlags;
|
||||||
|
|
||||||
|
typedef struct StdVideoEncodeH265LongTermRefPics {
|
||||||
|
uint8_t num_long_term_sps;
|
||||||
|
uint8_t num_long_term_pics;
|
||||||
|
uint8_t lt_idx_sps[STD_VIDEO_H265_MAX_LONG_TERM_REF_PICS_SPS];
|
||||||
|
uint8_t poc_lsb_lt[STD_VIDEO_H265_MAX_LONG_TERM_PICS];
|
||||||
|
uint16_t used_by_curr_pic_lt_flag;
|
||||||
|
uint8_t delta_poc_msb_present_flag[STD_VIDEO_H265_MAX_DELTA_POC];
|
||||||
|
uint8_t delta_poc_msb_cycle_lt[STD_VIDEO_H265_MAX_DELTA_POC];
|
||||||
|
} StdVideoEncodeH265LongTermRefPics;
|
||||||
|
|
||||||
|
typedef struct StdVideoEncodeH265PictureInfo {
|
||||||
|
StdVideoEncodeH265PictureInfoFlags flags;
|
||||||
|
StdVideoH265PictureType pic_type;
|
||||||
|
uint8_t sps_video_parameter_set_id;
|
||||||
|
uint8_t pps_seq_parameter_set_id;
|
||||||
|
uint8_t pps_pic_parameter_set_id;
|
||||||
|
uint8_t short_term_ref_pic_set_idx;
|
||||||
|
int32_t PicOrderCntVal;
|
||||||
|
uint8_t TemporalId;
|
||||||
|
uint8_t reserved1[7];
|
||||||
|
const StdVideoEncodeH265ReferenceListsInfo* pRefLists;
|
||||||
|
const StdVideoH265ShortTermRefPicSet* pShortTermRefPicSet;
|
||||||
|
const StdVideoEncodeH265LongTermRefPics* pLongTermRefPics;
|
||||||
|
} StdVideoEncodeH265PictureInfo;
|
||||||
|
|
||||||
|
typedef struct StdVideoEncodeH265ReferenceInfoFlags {
|
||||||
|
uint32_t used_for_long_term_reference : 1;
|
||||||
|
uint32_t unused_for_reference : 1;
|
||||||
|
uint32_t reserved : 30;
|
||||||
|
} StdVideoEncodeH265ReferenceInfoFlags;
|
||||||
|
|
||||||
|
typedef struct StdVideoEncodeH265ReferenceInfo {
|
||||||
|
StdVideoEncodeH265ReferenceInfoFlags flags;
|
||||||
|
StdVideoH265PictureType pic_type;
|
||||||
|
int32_t PicOrderCntVal;
|
||||||
|
uint8_t TemporalId;
|
||||||
|
} StdVideoEncodeH265ReferenceInfo;
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif
|
|
@ -0,0 +1,36 @@
|
||||||
|
#ifndef VULKAN_VIDEO_CODECS_COMMON_H_
|
||||||
|
#define VULKAN_VIDEO_CODECS_COMMON_H_ 1
|
||||||
|
|
||||||
|
/*
|
||||||
|
** Copyright 2015-2023 The Khronos Group Inc.
|
||||||
|
**
|
||||||
|
** SPDX-License-Identifier: Apache-2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
** This header is generated from the Khronos Vulkan XML API Registry.
|
||||||
|
**
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// vulkan_video_codecs_common is a preprocessor guard. Do not pass it to API calls.
|
||||||
|
#define vulkan_video_codecs_common 1
|
||||||
|
#if !defined(VK_NO_STDINT_H)
|
||||||
|
#include <stdint.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#define VK_MAKE_VIDEO_STD_VERSION(major, minor, patch) \
|
||||||
|
((((uint32_t)(major)) << 22) | (((uint32_t)(minor)) << 12) | ((uint32_t)(patch)))
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif
|
|
@ -1,27 +1,11 @@
|
||||||
//
|
|
||||||
// File: vk_icd.h
|
|
||||||
//
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2015-2016 The Khronos Group Inc.
|
* Copyright 2015-2023 The Khronos Group Inc.
|
||||||
* Copyright (c) 2015-2016 Valve Corporation
|
* Copyright 2015-2023 Valve Corporation
|
||||||
* Copyright (c) 2015-2016 LunarG, Inc.
|
* Copyright 2015-2023 LunarG, Inc.
|
||||||
*
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
*
|
*
|
||||||
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
#pragma once
|
||||||
#ifndef VKICD_H
|
|
||||||
#define VKICD_H
|
|
||||||
|
|
||||||
#include "vulkan.h"
|
#include "vulkan.h"
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
@ -33,7 +17,7 @@
|
||||||
// Version 2 - Add Loader/ICD Interface version negotiation
|
// Version 2 - Add Loader/ICD Interface version negotiation
|
||||||
// via vk_icdNegotiateLoaderICDInterfaceVersion.
|
// via vk_icdNegotiateLoaderICDInterfaceVersion.
|
||||||
// Version 3 - Add ICD creation/destruction of KHR_surface objects.
|
// Version 3 - Add ICD creation/destruction of KHR_surface objects.
|
||||||
// Version 4 - Add unknown physical device extension qyering via
|
// Version 4 - Add unknown physical device extension querying via
|
||||||
// vk_icdGetPhysicalDeviceProcAddr.
|
// vk_icdGetPhysicalDeviceProcAddr.
|
||||||
// Version 5 - Tells ICDs that the loader is now paying attention to the
|
// Version 5 - Tells ICDs that the loader is now paying attention to the
|
||||||
// application version of Vulkan passed into the ApplicationInfo
|
// application version of Vulkan passed into the ApplicationInfo
|
||||||
|
@ -42,7 +26,17 @@
|
||||||
// call for any API version > 1.0. Otherwise, the loader will
|
// call for any API version > 1.0. Otherwise, the loader will
|
||||||
// manually determine if it can support the expected version.
|
// manually determine if it can support the expected version.
|
||||||
// Version 6 - Add support for vk_icdEnumerateAdapterPhysicalDevices.
|
// Version 6 - Add support for vk_icdEnumerateAdapterPhysicalDevices.
|
||||||
#define CURRENT_LOADER_ICD_INTERFACE_VERSION 6
|
// Version 7 - If an ICD supports any of the following functions, they must be
|
||||||
|
// queryable with vk_icdGetInstanceProcAddr:
|
||||||
|
// vk_icdNegotiateLoaderICDInterfaceVersion
|
||||||
|
// vk_icdGetPhysicalDeviceProcAddr
|
||||||
|
// vk_icdEnumerateAdapterPhysicalDevices (Windows only)
|
||||||
|
// In addition, these functions no longer need to be exported directly.
|
||||||
|
// This version allows drivers provided through the extension
|
||||||
|
// VK_LUNARG_direct_driver_loading be able to support the entire
|
||||||
|
// Driver-Loader interface.
|
||||||
|
|
||||||
|
#define CURRENT_LOADER_ICD_INTERFACE_VERSION 7
|
||||||
#define MIN_SUPPORTED_LOADER_ICD_INTERFACE_VERSION 0
|
#define MIN_SUPPORTED_LOADER_ICD_INTERFACE_VERSION 0
|
||||||
#define MIN_PHYS_DEV_EXTENSION_ICD_INTERFACE_VERSION 4
|
#define MIN_PHYS_DEV_EXTENSION_ICD_INTERFACE_VERSION 4
|
||||||
|
|
||||||
|
@ -70,7 +64,7 @@ extern "C" {
|
||||||
#endif
|
#endif
|
||||||
VKAPI_ATTR VkResult VKAPI_CALL vk_icdNegotiateLoaderICDInterfaceVersion(uint32_t* pVersion);
|
VKAPI_ATTR VkResult VKAPI_CALL vk_icdNegotiateLoaderICDInterfaceVersion(uint32_t* pVersion);
|
||||||
VKAPI_ATTR PFN_vkVoidFunction VKAPI_CALL vk_icdGetInstanceProcAddr(VkInstance instance, const char* pName);
|
VKAPI_ATTR PFN_vkVoidFunction VKAPI_CALL vk_icdGetInstanceProcAddr(VkInstance instance, const char* pName);
|
||||||
VKAPI_ATTR PFN_vkVoidFunction VKAPI_CALL vk_icdGetPhysicalDeviceProcAddr(VkInstance isntance, const char* pName);
|
VKAPI_ATTR PFN_vkVoidFunction VKAPI_CALL vk_icdGetPhysicalDeviceProcAddr(VkInstance instance, const char* pName);
|
||||||
#if defined(VK_USE_PLATFORM_WIN32_KHR)
|
#if defined(VK_USE_PLATFORM_WIN32_KHR)
|
||||||
VKAPI_ATTR VkResult VKAPI_CALL vk_icdEnumerateAdapterPhysicalDevices(VkInstance instance, LUID adapterLUID,
|
VKAPI_ATTR VkResult VKAPI_CALL vk_icdEnumerateAdapterPhysicalDevices(VkInstance instance, LUID adapterLUID,
|
||||||
uint32_t* pPhysicalDeviceCount, VkPhysicalDevice* pPhysicalDevices);
|
uint32_t* pPhysicalDeviceCount, VkPhysicalDevice* pPhysicalDevices);
|
||||||
|
@ -123,6 +117,7 @@ typedef enum {
|
||||||
VK_ICD_WSI_PLATFORM_VI,
|
VK_ICD_WSI_PLATFORM_VI,
|
||||||
VK_ICD_WSI_PLATFORM_GGP,
|
VK_ICD_WSI_PLATFORM_GGP,
|
||||||
VK_ICD_WSI_PLATFORM_SCREEN,
|
VK_ICD_WSI_PLATFORM_SCREEN,
|
||||||
|
VK_ICD_WSI_PLATFORM_FUCHSIA,
|
||||||
} VkIcdWsiPlatform;
|
} VkIcdWsiPlatform;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
|
@ -242,4 +237,8 @@ typedef struct {
|
||||||
} VkIcdSurfaceScreen;
|
} VkIcdSurfaceScreen;
|
||||||
#endif // VK_USE_PLATFORM_SCREEN_QNX
|
#endif // VK_USE_PLATFORM_SCREEN_QNX
|
||||||
|
|
||||||
#endif // VKICD_H
|
#ifdef VK_USE_PLATFORM_FUCHSIA
|
||||||
|
typedef struct {
|
||||||
|
VkIcdSurfaceBase base;
|
||||||
|
} VkIcdSurfaceImagePipe;
|
||||||
|
#endif // VK_USE_PLATFORM_FUCHSIA
|
||||||
|
|
|
@ -1,39 +1,18 @@
|
||||||
//
|
|
||||||
// File: vk_layer.h
|
|
||||||
//
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2015-2017 The Khronos Group Inc.
|
* Copyright 2015-2023 The Khronos Group Inc.
|
||||||
* Copyright (c) 2015-2017 Valve Corporation
|
* Copyright 2015-2023 Valve Corporation
|
||||||
* Copyright (c) 2015-2017 LunarG, Inc.
|
* Copyright 2015-2023 LunarG, Inc.
|
||||||
*
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
*
|
*
|
||||||
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
#pragma once
|
||||||
|
|
||||||
/* Need to define dispatch table
|
/* Need to define dispatch table
|
||||||
* Core struct can then have ptr to dispatch table at the top
|
* Core struct can then have ptr to dispatch table at the top
|
||||||
* Along with object ptrs for current and next OBJ
|
* Along with object ptrs for current and next OBJ
|
||||||
*/
|
*/
|
||||||
#pragma once
|
|
||||||
|
|
||||||
#include "vulkan.h"
|
#include "vulkan_core.h"
|
||||||
#if defined(__GNUC__) && __GNUC__ >= 4
|
|
||||||
#define VK_LAYER_EXPORT __attribute__((visibility("default")))
|
|
||||||
#elif defined(__SUNPRO_C) && (__SUNPRO_C >= 0x590)
|
|
||||||
#define VK_LAYER_EXPORT __attribute__((visibility("default")))
|
|
||||||
#else
|
|
||||||
#define VK_LAYER_EXPORT
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define MAX_NUM_UNKNOWN_EXTS 250
|
#define MAX_NUM_UNKNOWN_EXTS 250
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
// File: vk_platform.h
|
// File: vk_platform.h
|
||||||
//
|
//
|
||||||
/*
|
/*
|
||||||
** Copyright 2014-2021 The Khronos Group Inc.
|
** Copyright 2014-2023 The Khronos Group Inc.
|
||||||
**
|
**
|
||||||
** SPDX-License-Identifier: Apache-2.0
|
** SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
@ -42,7 +42,7 @@ extern "C"
|
||||||
#define VKAPI_CALL __stdcall
|
#define VKAPI_CALL __stdcall
|
||||||
#define VKAPI_PTR VKAPI_CALL
|
#define VKAPI_PTR VKAPI_CALL
|
||||||
#elif defined(__ANDROID__) && defined(__ARM_ARCH) && __ARM_ARCH < 7
|
#elif defined(__ANDROID__) && defined(__ARM_ARCH) && __ARM_ARCH < 7
|
||||||
#error "Vulkan isn't supported for the 'armeabi' NDK ABI"
|
#error "Vulkan is not supported for the 'armeabi' NDK ABI"
|
||||||
#elif defined(__ANDROID__) && defined(__ARM_ARCH) && __ARM_ARCH >= 7 && defined(__ARM_32BIT_STATE)
|
#elif defined(__ANDROID__) && defined(__ARM_ARCH) && __ARM_ARCH >= 7 && defined(__ARM_32BIT_STATE)
|
||||||
// On Android 32-bit ARM targets, Vulkan functions use the "hardfloat"
|
// On Android 32-bit ARM targets, Vulkan functions use the "hardfloat"
|
||||||
// calling convention, i.e. float parameters are passed in registers. This
|
// calling convention, i.e. float parameters are passed in registers. This
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
#define VULKAN_H_ 1
|
#define VULKAN_H_ 1
|
||||||
|
|
||||||
/*
|
/*
|
||||||
** Copyright 2015-2021 The Khronos Group Inc.
|
** Copyright 2015-2023 The Khronos Group Inc.
|
||||||
**
|
**
|
||||||
** SPDX-License-Identifier: Apache-2.0
|
** SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
@ -38,7 +38,6 @@
|
||||||
|
|
||||||
|
|
||||||
#ifdef VK_USE_PLATFORM_WAYLAND_KHR
|
#ifdef VK_USE_PLATFORM_WAYLAND_KHR
|
||||||
#include <wayland-client.h>
|
|
||||||
#include "vulkan_wayland.h"
|
#include "vulkan_wayland.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -85,6 +84,14 @@
|
||||||
#include "vulkan_screen.h"
|
#include "vulkan_screen.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef VK_USE_PLATFORM_SCI
|
||||||
|
#include <nvscisync.h>
|
||||||
|
#include <nvscibuf.h>
|
||||||
|
#include "vulkan_sci.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#ifdef VK_ENABLE_BETA_EXTENSIONS
|
#ifdef VK_ENABLE_BETA_EXTENSIONS
|
||||||
#include "vulkan_beta.h"
|
#include "vulkan_beta.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
#define VULKAN_ANDROID_H_ 1
|
#define VULKAN_ANDROID_H_ 1
|
||||||
|
|
||||||
/*
|
/*
|
||||||
** Copyright 2015-2021 The Khronos Group Inc.
|
** Copyright 2015-2023 The Khronos Group Inc.
|
||||||
**
|
**
|
||||||
** SPDX-License-Identifier: Apache-2.0
|
** SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
@ -19,6 +19,7 @@ extern "C" {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// VK_KHR_android_surface is a preprocessor guard. Do not pass it to API calls.
|
||||||
#define VK_KHR_android_surface 1
|
#define VK_KHR_android_surface 1
|
||||||
struct ANativeWindow;
|
struct ANativeWindow;
|
||||||
#define VK_KHR_ANDROID_SURFACE_SPEC_VERSION 6
|
#define VK_KHR_ANDROID_SURFACE_SPEC_VERSION 6
|
||||||
|
@ -42,9 +43,10 @@ VKAPI_ATTR VkResult VKAPI_CALL vkCreateAndroidSurfaceKHR(
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
// VK_ANDROID_external_memory_android_hardware_buffer is a preprocessor guard. Do not pass it to API calls.
|
||||||
#define VK_ANDROID_external_memory_android_hardware_buffer 1
|
#define VK_ANDROID_external_memory_android_hardware_buffer 1
|
||||||
struct AHardwareBuffer;
|
struct AHardwareBuffer;
|
||||||
#define VK_ANDROID_EXTERNAL_MEMORY_ANDROID_HARDWARE_BUFFER_SPEC_VERSION 3
|
#define VK_ANDROID_EXTERNAL_MEMORY_ANDROID_HARDWARE_BUFFER_SPEC_VERSION 5
|
||||||
#define VK_ANDROID_EXTERNAL_MEMORY_ANDROID_HARDWARE_BUFFER_EXTENSION_NAME "VK_ANDROID_external_memory_android_hardware_buffer"
|
#define VK_ANDROID_EXTERNAL_MEMORY_ANDROID_HARDWARE_BUFFER_EXTENSION_NAME "VK_ANDROID_external_memory_android_hardware_buffer"
|
||||||
typedef struct VkAndroidHardwareBufferUsageANDROID {
|
typedef struct VkAndroidHardwareBufferUsageANDROID {
|
||||||
VkStructureType sType;
|
VkStructureType sType;
|
||||||
|
@ -90,6 +92,19 @@ typedef struct VkExternalFormatANDROID {
|
||||||
uint64_t externalFormat;
|
uint64_t externalFormat;
|
||||||
} VkExternalFormatANDROID;
|
} VkExternalFormatANDROID;
|
||||||
|
|
||||||
|
typedef struct VkAndroidHardwareBufferFormatProperties2ANDROID {
|
||||||
|
VkStructureType sType;
|
||||||
|
void* pNext;
|
||||||
|
VkFormat format;
|
||||||
|
uint64_t externalFormat;
|
||||||
|
VkFormatFeatureFlags2 formatFeatures;
|
||||||
|
VkComponentMapping samplerYcbcrConversionComponents;
|
||||||
|
VkSamplerYcbcrModelConversion suggestedYcbcrModel;
|
||||||
|
VkSamplerYcbcrRange suggestedYcbcrRange;
|
||||||
|
VkChromaLocation suggestedXChromaOffset;
|
||||||
|
VkChromaLocation suggestedYChromaOffset;
|
||||||
|
} VkAndroidHardwareBufferFormatProperties2ANDROID;
|
||||||
|
|
||||||
typedef VkResult (VKAPI_PTR *PFN_vkGetAndroidHardwareBufferPropertiesANDROID)(VkDevice device, const struct AHardwareBuffer* buffer, VkAndroidHardwareBufferPropertiesANDROID* pProperties);
|
typedef VkResult (VKAPI_PTR *PFN_vkGetAndroidHardwareBufferPropertiesANDROID)(VkDevice device, const struct AHardwareBuffer* buffer, VkAndroidHardwareBufferPropertiesANDROID* pProperties);
|
||||||
typedef VkResult (VKAPI_PTR *PFN_vkGetMemoryAndroidHardwareBufferANDROID)(VkDevice device, const VkMemoryGetAndroidHardwareBufferInfoANDROID* pInfo, struct AHardwareBuffer** pBuffer);
|
typedef VkResult (VKAPI_PTR *PFN_vkGetMemoryAndroidHardwareBufferANDROID)(VkDevice device, const VkMemoryGetAndroidHardwareBufferInfoANDROID* pInfo, struct AHardwareBuffer** pBuffer);
|
||||||
|
|
||||||
|
@ -105,6 +120,32 @@ VKAPI_ATTR VkResult VKAPI_CALL vkGetMemoryAndroidHardwareBufferANDROID(
|
||||||
struct AHardwareBuffer** pBuffer);
|
struct AHardwareBuffer** pBuffer);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
// VK_ANDROID_external_format_resolve is a preprocessor guard. Do not pass it to API calls.
|
||||||
|
#define VK_ANDROID_external_format_resolve 1
|
||||||
|
#define VK_ANDROID_EXTERNAL_FORMAT_RESOLVE_SPEC_VERSION 1
|
||||||
|
#define VK_ANDROID_EXTERNAL_FORMAT_RESOLVE_EXTENSION_NAME "VK_ANDROID_external_format_resolve"
|
||||||
|
typedef struct VkPhysicalDeviceExternalFormatResolveFeaturesANDROID {
|
||||||
|
VkStructureType sType;
|
||||||
|
void* pNext;
|
||||||
|
VkBool32 externalFormatResolve;
|
||||||
|
} VkPhysicalDeviceExternalFormatResolveFeaturesANDROID;
|
||||||
|
|
||||||
|
typedef struct VkPhysicalDeviceExternalFormatResolvePropertiesANDROID {
|
||||||
|
VkStructureType sType;
|
||||||
|
void* pNext;
|
||||||
|
VkBool32 nullColorAttachmentWithExternalFormatResolve;
|
||||||
|
VkChromaLocation externalFormatResolveChromaOffsetX;
|
||||||
|
VkChromaLocation externalFormatResolveChromaOffsetY;
|
||||||
|
} VkPhysicalDeviceExternalFormatResolvePropertiesANDROID;
|
||||||
|
|
||||||
|
typedef struct VkAndroidHardwareBufferFormatResolvePropertiesANDROID {
|
||||||
|
VkStructureType sType;
|
||||||
|
void* pNext;
|
||||||
|
VkFormat colorAttachmentFormat;
|
||||||
|
} VkAndroidHardwareBufferFormatResolvePropertiesANDROID;
|
||||||
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
@ -2,7 +2,7 @@
|
||||||
#define VULKAN_DIRECTFB_H_ 1
|
#define VULKAN_DIRECTFB_H_ 1
|
||||||
|
|
||||||
/*
|
/*
|
||||||
** Copyright 2015-2021 The Khronos Group Inc.
|
** Copyright 2015-2023 The Khronos Group Inc.
|
||||||
**
|
**
|
||||||
** SPDX-License-Identifier: Apache-2.0
|
** SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
@ -19,6 +19,7 @@ extern "C" {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// VK_EXT_directfb_surface is a preprocessor guard. Do not pass it to API calls.
|
||||||
#define VK_EXT_directfb_surface 1
|
#define VK_EXT_directfb_surface 1
|
||||||
#define VK_EXT_DIRECTFB_SURFACE_SPEC_VERSION 1
|
#define VK_EXT_DIRECTFB_SURFACE_SPEC_VERSION 1
|
||||||
#define VK_EXT_DIRECTFB_SURFACE_EXTENSION_NAME "VK_EXT_directfb_surface"
|
#define VK_EXT_DIRECTFB_SURFACE_EXTENSION_NAME "VK_EXT_directfb_surface"
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
#define VULKAN_FUCHSIA_H_ 1
|
#define VULKAN_FUCHSIA_H_ 1
|
||||||
|
|
||||||
/*
|
/*
|
||||||
** Copyright 2015-2021 The Khronos Group Inc.
|
** Copyright 2015-2023 The Khronos Group Inc.
|
||||||
**
|
**
|
||||||
** SPDX-License-Identifier: Apache-2.0
|
** SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
@ -19,6 +19,7 @@ extern "C" {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// VK_FUCHSIA_imagepipe_surface is a preprocessor guard. Do not pass it to API calls.
|
||||||
#define VK_FUCHSIA_imagepipe_surface 1
|
#define VK_FUCHSIA_imagepipe_surface 1
|
||||||
#define VK_FUCHSIA_IMAGEPIPE_SURFACE_SPEC_VERSION 1
|
#define VK_FUCHSIA_IMAGEPIPE_SURFACE_SPEC_VERSION 1
|
||||||
#define VK_FUCHSIA_IMAGEPIPE_SURFACE_EXTENSION_NAME "VK_FUCHSIA_imagepipe_surface"
|
#define VK_FUCHSIA_IMAGEPIPE_SURFACE_EXTENSION_NAME "VK_FUCHSIA_imagepipe_surface"
|
||||||
|
@ -41,6 +42,7 @@ VKAPI_ATTR VkResult VKAPI_CALL vkCreateImagePipeSurfaceFUCHSIA(
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
// VK_FUCHSIA_external_memory is a preprocessor guard. Do not pass it to API calls.
|
||||||
#define VK_FUCHSIA_external_memory 1
|
#define VK_FUCHSIA_external_memory 1
|
||||||
#define VK_FUCHSIA_EXTERNAL_MEMORY_SPEC_VERSION 1
|
#define VK_FUCHSIA_EXTERNAL_MEMORY_SPEC_VERSION 1
|
||||||
#define VK_FUCHSIA_EXTERNAL_MEMORY_EXTENSION_NAME "VK_FUCHSIA_external_memory"
|
#define VK_FUCHSIA_EXTERNAL_MEMORY_EXTENSION_NAME "VK_FUCHSIA_external_memory"
|
||||||
|
@ -81,6 +83,7 @@ VKAPI_ATTR VkResult VKAPI_CALL vkGetMemoryZirconHandlePropertiesFUCHSIA(
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
// VK_FUCHSIA_external_semaphore is a preprocessor guard. Do not pass it to API calls.
|
||||||
#define VK_FUCHSIA_external_semaphore 1
|
#define VK_FUCHSIA_external_semaphore 1
|
||||||
#define VK_FUCHSIA_EXTERNAL_SEMAPHORE_SPEC_VERSION 1
|
#define VK_FUCHSIA_EXTERNAL_SEMAPHORE_SPEC_VERSION 1
|
||||||
#define VK_FUCHSIA_EXTERNAL_SEMAPHORE_EXTENSION_NAME "VK_FUCHSIA_external_semaphore"
|
#define VK_FUCHSIA_EXTERNAL_SEMAPHORE_EXTENSION_NAME "VK_FUCHSIA_external_semaphore"
|
||||||
|
@ -114,6 +117,144 @@ VKAPI_ATTR VkResult VKAPI_CALL vkGetSemaphoreZirconHandleFUCHSIA(
|
||||||
zx_handle_t* pZirconHandle);
|
zx_handle_t* pZirconHandle);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
// VK_FUCHSIA_buffer_collection is a preprocessor guard. Do not pass it to API calls.
|
||||||
|
#define VK_FUCHSIA_buffer_collection 1
|
||||||
|
VK_DEFINE_NON_DISPATCHABLE_HANDLE(VkBufferCollectionFUCHSIA)
|
||||||
|
#define VK_FUCHSIA_BUFFER_COLLECTION_SPEC_VERSION 2
|
||||||
|
#define VK_FUCHSIA_BUFFER_COLLECTION_EXTENSION_NAME "VK_FUCHSIA_buffer_collection"
|
||||||
|
typedef VkFlags VkImageFormatConstraintsFlagsFUCHSIA;
|
||||||
|
|
||||||
|
typedef enum VkImageConstraintsInfoFlagBitsFUCHSIA {
|
||||||
|
VK_IMAGE_CONSTRAINTS_INFO_CPU_READ_RARELY_FUCHSIA = 0x00000001,
|
||||||
|
VK_IMAGE_CONSTRAINTS_INFO_CPU_READ_OFTEN_FUCHSIA = 0x00000002,
|
||||||
|
VK_IMAGE_CONSTRAINTS_INFO_CPU_WRITE_RARELY_FUCHSIA = 0x00000004,
|
||||||
|
VK_IMAGE_CONSTRAINTS_INFO_CPU_WRITE_OFTEN_FUCHSIA = 0x00000008,
|
||||||
|
VK_IMAGE_CONSTRAINTS_INFO_PROTECTED_OPTIONAL_FUCHSIA = 0x00000010,
|
||||||
|
VK_IMAGE_CONSTRAINTS_INFO_FLAG_BITS_MAX_ENUM_FUCHSIA = 0x7FFFFFFF
|
||||||
|
} VkImageConstraintsInfoFlagBitsFUCHSIA;
|
||||||
|
typedef VkFlags VkImageConstraintsInfoFlagsFUCHSIA;
|
||||||
|
typedef struct VkBufferCollectionCreateInfoFUCHSIA {
|
||||||
|
VkStructureType sType;
|
||||||
|
const void* pNext;
|
||||||
|
zx_handle_t collectionToken;
|
||||||
|
} VkBufferCollectionCreateInfoFUCHSIA;
|
||||||
|
|
||||||
|
typedef struct VkImportMemoryBufferCollectionFUCHSIA {
|
||||||
|
VkStructureType sType;
|
||||||
|
const void* pNext;
|
||||||
|
VkBufferCollectionFUCHSIA collection;
|
||||||
|
uint32_t index;
|
||||||
|
} VkImportMemoryBufferCollectionFUCHSIA;
|
||||||
|
|
||||||
|
typedef struct VkBufferCollectionImageCreateInfoFUCHSIA {
|
||||||
|
VkStructureType sType;
|
||||||
|
const void* pNext;
|
||||||
|
VkBufferCollectionFUCHSIA collection;
|
||||||
|
uint32_t index;
|
||||||
|
} VkBufferCollectionImageCreateInfoFUCHSIA;
|
||||||
|
|
||||||
|
typedef struct VkBufferCollectionConstraintsInfoFUCHSIA {
|
||||||
|
VkStructureType sType;
|
||||||
|
const void* pNext;
|
||||||
|
uint32_t minBufferCount;
|
||||||
|
uint32_t maxBufferCount;
|
||||||
|
uint32_t minBufferCountForCamping;
|
||||||
|
uint32_t minBufferCountForDedicatedSlack;
|
||||||
|
uint32_t minBufferCountForSharedSlack;
|
||||||
|
} VkBufferCollectionConstraintsInfoFUCHSIA;
|
||||||
|
|
||||||
|
typedef struct VkBufferConstraintsInfoFUCHSIA {
|
||||||
|
VkStructureType sType;
|
||||||
|
const void* pNext;
|
||||||
|
VkBufferCreateInfo createInfo;
|
||||||
|
VkFormatFeatureFlags requiredFormatFeatures;
|
||||||
|
VkBufferCollectionConstraintsInfoFUCHSIA bufferCollectionConstraints;
|
||||||
|
} VkBufferConstraintsInfoFUCHSIA;
|
||||||
|
|
||||||
|
typedef struct VkBufferCollectionBufferCreateInfoFUCHSIA {
|
||||||
|
VkStructureType sType;
|
||||||
|
const void* pNext;
|
||||||
|
VkBufferCollectionFUCHSIA collection;
|
||||||
|
uint32_t index;
|
||||||
|
} VkBufferCollectionBufferCreateInfoFUCHSIA;
|
||||||
|
|
||||||
|
typedef struct VkSysmemColorSpaceFUCHSIA {
|
||||||
|
VkStructureType sType;
|
||||||
|
const void* pNext;
|
||||||
|
uint32_t colorSpace;
|
||||||
|
} VkSysmemColorSpaceFUCHSIA;
|
||||||
|
|
||||||
|
typedef struct VkBufferCollectionPropertiesFUCHSIA {
|
||||||
|
VkStructureType sType;
|
||||||
|
void* pNext;
|
||||||
|
uint32_t memoryTypeBits;
|
||||||
|
uint32_t bufferCount;
|
||||||
|
uint32_t createInfoIndex;
|
||||||
|
uint64_t sysmemPixelFormat;
|
||||||
|
VkFormatFeatureFlags formatFeatures;
|
||||||
|
VkSysmemColorSpaceFUCHSIA sysmemColorSpaceIndex;
|
||||||
|
VkComponentMapping samplerYcbcrConversionComponents;
|
||||||
|
VkSamplerYcbcrModelConversion suggestedYcbcrModel;
|
||||||
|
VkSamplerYcbcrRange suggestedYcbcrRange;
|
||||||
|
VkChromaLocation suggestedXChromaOffset;
|
||||||
|
VkChromaLocation suggestedYChromaOffset;
|
||||||
|
} VkBufferCollectionPropertiesFUCHSIA;
|
||||||
|
|
||||||
|
typedef struct VkImageFormatConstraintsInfoFUCHSIA {
|
||||||
|
VkStructureType sType;
|
||||||
|
const void* pNext;
|
||||||
|
VkImageCreateInfo imageCreateInfo;
|
||||||
|
VkFormatFeatureFlags requiredFormatFeatures;
|
||||||
|
VkImageFormatConstraintsFlagsFUCHSIA flags;
|
||||||
|
uint64_t sysmemPixelFormat;
|
||||||
|
uint32_t colorSpaceCount;
|
||||||
|
const VkSysmemColorSpaceFUCHSIA* pColorSpaces;
|
||||||
|
} VkImageFormatConstraintsInfoFUCHSIA;
|
||||||
|
|
||||||
|
typedef struct VkImageConstraintsInfoFUCHSIA {
|
||||||
|
VkStructureType sType;
|
||||||
|
const void* pNext;
|
||||||
|
uint32_t formatConstraintsCount;
|
||||||
|
const VkImageFormatConstraintsInfoFUCHSIA* pFormatConstraints;
|
||||||
|
VkBufferCollectionConstraintsInfoFUCHSIA bufferCollectionConstraints;
|
||||||
|
VkImageConstraintsInfoFlagsFUCHSIA flags;
|
||||||
|
} VkImageConstraintsInfoFUCHSIA;
|
||||||
|
|
||||||
|
typedef VkResult (VKAPI_PTR *PFN_vkCreateBufferCollectionFUCHSIA)(VkDevice device, const VkBufferCollectionCreateInfoFUCHSIA* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkBufferCollectionFUCHSIA* pCollection);
|
||||||
|
typedef VkResult (VKAPI_PTR *PFN_vkSetBufferCollectionImageConstraintsFUCHSIA)(VkDevice device, VkBufferCollectionFUCHSIA collection, const VkImageConstraintsInfoFUCHSIA* pImageConstraintsInfo);
|
||||||
|
typedef VkResult (VKAPI_PTR *PFN_vkSetBufferCollectionBufferConstraintsFUCHSIA)(VkDevice device, VkBufferCollectionFUCHSIA collection, const VkBufferConstraintsInfoFUCHSIA* pBufferConstraintsInfo);
|
||||||
|
typedef void (VKAPI_PTR *PFN_vkDestroyBufferCollectionFUCHSIA)(VkDevice device, VkBufferCollectionFUCHSIA collection, const VkAllocationCallbacks* pAllocator);
|
||||||
|
typedef VkResult (VKAPI_PTR *PFN_vkGetBufferCollectionPropertiesFUCHSIA)(VkDevice device, VkBufferCollectionFUCHSIA collection, VkBufferCollectionPropertiesFUCHSIA* pProperties);
|
||||||
|
|
||||||
|
#ifndef VK_NO_PROTOTYPES
|
||||||
|
VKAPI_ATTR VkResult VKAPI_CALL vkCreateBufferCollectionFUCHSIA(
|
||||||
|
VkDevice device,
|
||||||
|
const VkBufferCollectionCreateInfoFUCHSIA* pCreateInfo,
|
||||||
|
const VkAllocationCallbacks* pAllocator,
|
||||||
|
VkBufferCollectionFUCHSIA* pCollection);
|
||||||
|
|
||||||
|
VKAPI_ATTR VkResult VKAPI_CALL vkSetBufferCollectionImageConstraintsFUCHSIA(
|
||||||
|
VkDevice device,
|
||||||
|
VkBufferCollectionFUCHSIA collection,
|
||||||
|
const VkImageConstraintsInfoFUCHSIA* pImageConstraintsInfo);
|
||||||
|
|
||||||
|
VKAPI_ATTR VkResult VKAPI_CALL vkSetBufferCollectionBufferConstraintsFUCHSIA(
|
||||||
|
VkDevice device,
|
||||||
|
VkBufferCollectionFUCHSIA collection,
|
||||||
|
const VkBufferConstraintsInfoFUCHSIA* pBufferConstraintsInfo);
|
||||||
|
|
||||||
|
VKAPI_ATTR void VKAPI_CALL vkDestroyBufferCollectionFUCHSIA(
|
||||||
|
VkDevice device,
|
||||||
|
VkBufferCollectionFUCHSIA collection,
|
||||||
|
const VkAllocationCallbacks* pAllocator);
|
||||||
|
|
||||||
|
VKAPI_ATTR VkResult VKAPI_CALL vkGetBufferCollectionPropertiesFUCHSIA(
|
||||||
|
VkDevice device,
|
||||||
|
VkBufferCollectionFUCHSIA collection,
|
||||||
|
VkBufferCollectionPropertiesFUCHSIA* pProperties);
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
#define VULKAN_GGP_H_ 1
|
#define VULKAN_GGP_H_ 1
|
||||||
|
|
||||||
/*
|
/*
|
||||||
** Copyright 2015-2021 The Khronos Group Inc.
|
** Copyright 2015-2023 The Khronos Group Inc.
|
||||||
**
|
**
|
||||||
** SPDX-License-Identifier: Apache-2.0
|
** SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
@ -19,6 +19,7 @@ extern "C" {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// VK_GGP_stream_descriptor_surface is a preprocessor guard. Do not pass it to API calls.
|
||||||
#define VK_GGP_stream_descriptor_surface 1
|
#define VK_GGP_stream_descriptor_surface 1
|
||||||
#define VK_GGP_STREAM_DESCRIPTOR_SURFACE_SPEC_VERSION 1
|
#define VK_GGP_STREAM_DESCRIPTOR_SURFACE_SPEC_VERSION 1
|
||||||
#define VK_GGP_STREAM_DESCRIPTOR_SURFACE_EXTENSION_NAME "VK_GGP_stream_descriptor_surface"
|
#define VK_GGP_STREAM_DESCRIPTOR_SURFACE_EXTENSION_NAME "VK_GGP_stream_descriptor_surface"
|
||||||
|
@ -41,6 +42,7 @@ VKAPI_ATTR VkResult VKAPI_CALL vkCreateStreamDescriptorSurfaceGGP(
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
// VK_GGP_frame_token is a preprocessor guard. Do not pass it to API calls.
|
||||||
#define VK_GGP_frame_token 1
|
#define VK_GGP_frame_token 1
|
||||||
#define VK_GGP_FRAME_TOKEN_SPEC_VERSION 1
|
#define VK_GGP_FRAME_TOKEN_SPEC_VERSION 1
|
||||||
#define VK_GGP_FRAME_TOKEN_EXTENSION_NAME "VK_GGP_frame_token"
|
#define VK_GGP_FRAME_TOKEN_EXTENSION_NAME "VK_GGP_frame_token"
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
#define VULKAN_IOS_H_ 1
|
#define VULKAN_IOS_H_ 1
|
||||||
|
|
||||||
/*
|
/*
|
||||||
** Copyright 2015-2021 The Khronos Group Inc.
|
** Copyright 2015-2023 The Khronos Group Inc.
|
||||||
**
|
**
|
||||||
** SPDX-License-Identifier: Apache-2.0
|
** SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
@ -19,6 +19,7 @@ extern "C" {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// VK_MVK_ios_surface is a preprocessor guard. Do not pass it to API calls.
|
||||||
#define VK_MVK_ios_surface 1
|
#define VK_MVK_ios_surface 1
|
||||||
#define VK_MVK_IOS_SURFACE_SPEC_VERSION 3
|
#define VK_MVK_IOS_SURFACE_SPEC_VERSION 3
|
||||||
#define VK_MVK_IOS_SURFACE_EXTENSION_NAME "VK_MVK_ios_surface"
|
#define VK_MVK_IOS_SURFACE_EXTENSION_NAME "VK_MVK_ios_surface"
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
#define VULKAN_MACOS_H_ 1
|
#define VULKAN_MACOS_H_ 1
|
||||||
|
|
||||||
/*
|
/*
|
||||||
** Copyright 2015-2021 The Khronos Group Inc.
|
** Copyright 2015-2023 The Khronos Group Inc.
|
||||||
**
|
**
|
||||||
** SPDX-License-Identifier: Apache-2.0
|
** SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
@ -19,6 +19,7 @@ extern "C" {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// VK_MVK_macos_surface is a preprocessor guard. Do not pass it to API calls.
|
||||||
#define VK_MVK_macos_surface 1
|
#define VK_MVK_macos_surface 1
|
||||||
#define VK_MVK_MACOS_SURFACE_SPEC_VERSION 3
|
#define VK_MVK_MACOS_SURFACE_SPEC_VERSION 3
|
||||||
#define VK_MVK_MACOS_SURFACE_EXTENSION_NAME "VK_MVK_macos_surface"
|
#define VK_MVK_MACOS_SURFACE_EXTENSION_NAME "VK_MVK_macos_surface"
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
#define VULKAN_METAL_H_ 1
|
#define VULKAN_METAL_H_ 1
|
||||||
|
|
||||||
/*
|
/*
|
||||||
** Copyright 2015-2021 The Khronos Group Inc.
|
** Copyright 2015-2023 The Khronos Group Inc.
|
||||||
**
|
**
|
||||||
** SPDX-License-Identifier: Apache-2.0
|
** SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
@ -19,8 +19,8 @@ extern "C" {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// VK_EXT_metal_surface is a preprocessor guard. Do not pass it to API calls.
|
||||||
#define VK_EXT_metal_surface 1
|
#define VK_EXT_metal_surface 1
|
||||||
|
|
||||||
#ifdef __OBJC__
|
#ifdef __OBJC__
|
||||||
@class CAMetalLayer;
|
@class CAMetalLayer;
|
||||||
#else
|
#else
|
||||||
|
@ -47,6 +47,147 @@ VKAPI_ATTR VkResult VKAPI_CALL vkCreateMetalSurfaceEXT(
|
||||||
VkSurfaceKHR* pSurface);
|
VkSurfaceKHR* pSurface);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
// VK_EXT_metal_objects is a preprocessor guard. Do not pass it to API calls.
|
||||||
|
#define VK_EXT_metal_objects 1
|
||||||
|
#ifdef __OBJC__
|
||||||
|
@protocol MTLDevice;
|
||||||
|
typedef id<MTLDevice> MTLDevice_id;
|
||||||
|
#else
|
||||||
|
typedef void* MTLDevice_id;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef __OBJC__
|
||||||
|
@protocol MTLCommandQueue;
|
||||||
|
typedef id<MTLCommandQueue> MTLCommandQueue_id;
|
||||||
|
#else
|
||||||
|
typedef void* MTLCommandQueue_id;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef __OBJC__
|
||||||
|
@protocol MTLBuffer;
|
||||||
|
typedef id<MTLBuffer> MTLBuffer_id;
|
||||||
|
#else
|
||||||
|
typedef void* MTLBuffer_id;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef __OBJC__
|
||||||
|
@protocol MTLTexture;
|
||||||
|
typedef id<MTLTexture> MTLTexture_id;
|
||||||
|
#else
|
||||||
|
typedef void* MTLTexture_id;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
typedef struct __IOSurface* IOSurfaceRef;
|
||||||
|
#ifdef __OBJC__
|
||||||
|
@protocol MTLSharedEvent;
|
||||||
|
typedef id<MTLSharedEvent> MTLSharedEvent_id;
|
||||||
|
#else
|
||||||
|
typedef void* MTLSharedEvent_id;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#define VK_EXT_METAL_OBJECTS_SPEC_VERSION 1
|
||||||
|
#define VK_EXT_METAL_OBJECTS_EXTENSION_NAME "VK_EXT_metal_objects"
|
||||||
|
|
||||||
|
typedef enum VkExportMetalObjectTypeFlagBitsEXT {
|
||||||
|
VK_EXPORT_METAL_OBJECT_TYPE_METAL_DEVICE_BIT_EXT = 0x00000001,
|
||||||
|
VK_EXPORT_METAL_OBJECT_TYPE_METAL_COMMAND_QUEUE_BIT_EXT = 0x00000002,
|
||||||
|
VK_EXPORT_METAL_OBJECT_TYPE_METAL_BUFFER_BIT_EXT = 0x00000004,
|
||||||
|
VK_EXPORT_METAL_OBJECT_TYPE_METAL_TEXTURE_BIT_EXT = 0x00000008,
|
||||||
|
VK_EXPORT_METAL_OBJECT_TYPE_METAL_IOSURFACE_BIT_EXT = 0x00000010,
|
||||||
|
VK_EXPORT_METAL_OBJECT_TYPE_METAL_SHARED_EVENT_BIT_EXT = 0x00000020,
|
||||||
|
VK_EXPORT_METAL_OBJECT_TYPE_FLAG_BITS_MAX_ENUM_EXT = 0x7FFFFFFF
|
||||||
|
} VkExportMetalObjectTypeFlagBitsEXT;
|
||||||
|
typedef VkFlags VkExportMetalObjectTypeFlagsEXT;
|
||||||
|
typedef struct VkExportMetalObjectCreateInfoEXT {
|
||||||
|
VkStructureType sType;
|
||||||
|
const void* pNext;
|
||||||
|
VkExportMetalObjectTypeFlagBitsEXT exportObjectType;
|
||||||
|
} VkExportMetalObjectCreateInfoEXT;
|
||||||
|
|
||||||
|
typedef struct VkExportMetalObjectsInfoEXT {
|
||||||
|
VkStructureType sType;
|
||||||
|
const void* pNext;
|
||||||
|
} VkExportMetalObjectsInfoEXT;
|
||||||
|
|
||||||
|
typedef struct VkExportMetalDeviceInfoEXT {
|
||||||
|
VkStructureType sType;
|
||||||
|
const void* pNext;
|
||||||
|
MTLDevice_id mtlDevice;
|
||||||
|
} VkExportMetalDeviceInfoEXT;
|
||||||
|
|
||||||
|
typedef struct VkExportMetalCommandQueueInfoEXT {
|
||||||
|
VkStructureType sType;
|
||||||
|
const void* pNext;
|
||||||
|
VkQueue queue;
|
||||||
|
MTLCommandQueue_id mtlCommandQueue;
|
||||||
|
} VkExportMetalCommandQueueInfoEXT;
|
||||||
|
|
||||||
|
typedef struct VkExportMetalBufferInfoEXT {
|
||||||
|
VkStructureType sType;
|
||||||
|
const void* pNext;
|
||||||
|
VkDeviceMemory memory;
|
||||||
|
MTLBuffer_id mtlBuffer;
|
||||||
|
} VkExportMetalBufferInfoEXT;
|
||||||
|
|
||||||
|
typedef struct VkImportMetalBufferInfoEXT {
|
||||||
|
VkStructureType sType;
|
||||||
|
const void* pNext;
|
||||||
|
MTLBuffer_id mtlBuffer;
|
||||||
|
} VkImportMetalBufferInfoEXT;
|
||||||
|
|
||||||
|
typedef struct VkExportMetalTextureInfoEXT {
|
||||||
|
VkStructureType sType;
|
||||||
|
const void* pNext;
|
||||||
|
VkImage image;
|
||||||
|
VkImageView imageView;
|
||||||
|
VkBufferView bufferView;
|
||||||
|
VkImageAspectFlagBits plane;
|
||||||
|
MTLTexture_id mtlTexture;
|
||||||
|
} VkExportMetalTextureInfoEXT;
|
||||||
|
|
||||||
|
typedef struct VkImportMetalTextureInfoEXT {
|
||||||
|
VkStructureType sType;
|
||||||
|
const void* pNext;
|
||||||
|
VkImageAspectFlagBits plane;
|
||||||
|
MTLTexture_id mtlTexture;
|
||||||
|
} VkImportMetalTextureInfoEXT;
|
||||||
|
|
||||||
|
typedef struct VkExportMetalIOSurfaceInfoEXT {
|
||||||
|
VkStructureType sType;
|
||||||
|
const void* pNext;
|
||||||
|
VkImage image;
|
||||||
|
IOSurfaceRef ioSurface;
|
||||||
|
} VkExportMetalIOSurfaceInfoEXT;
|
||||||
|
|
||||||
|
typedef struct VkImportMetalIOSurfaceInfoEXT {
|
||||||
|
VkStructureType sType;
|
||||||
|
const void* pNext;
|
||||||
|
IOSurfaceRef ioSurface;
|
||||||
|
} VkImportMetalIOSurfaceInfoEXT;
|
||||||
|
|
||||||
|
typedef struct VkExportMetalSharedEventInfoEXT {
|
||||||
|
VkStructureType sType;
|
||||||
|
const void* pNext;
|
||||||
|
VkSemaphore semaphore;
|
||||||
|
VkEvent event;
|
||||||
|
MTLSharedEvent_id mtlSharedEvent;
|
||||||
|
} VkExportMetalSharedEventInfoEXT;
|
||||||
|
|
||||||
|
typedef struct VkImportMetalSharedEventInfoEXT {
|
||||||
|
VkStructureType sType;
|
||||||
|
const void* pNext;
|
||||||
|
MTLSharedEvent_id mtlSharedEvent;
|
||||||
|
} VkImportMetalSharedEventInfoEXT;
|
||||||
|
|
||||||
|
typedef void (VKAPI_PTR *PFN_vkExportMetalObjectsEXT)(VkDevice device, VkExportMetalObjectsInfoEXT* pMetalObjectsInfo);
|
||||||
|
|
||||||
|
#ifndef VK_NO_PROTOTYPES
|
||||||
|
VKAPI_ATTR void VKAPI_CALL vkExportMetalObjectsEXT(
|
||||||
|
VkDevice device,
|
||||||
|
VkExportMetalObjectsInfoEXT* pMetalObjectsInfo);
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
#define VULKAN_SCREEN_H_ 1
|
#define VULKAN_SCREEN_H_ 1
|
||||||
|
|
||||||
/*
|
/*
|
||||||
** Copyright 2015-2021 The Khronos Group Inc.
|
** Copyright 2015-2023 The Khronos Group Inc.
|
||||||
**
|
**
|
||||||
** SPDX-License-Identifier: Apache-2.0
|
** SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
@ -19,6 +19,7 @@ extern "C" {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// VK_QNX_screen_surface is a preprocessor guard. Do not pass it to API calls.
|
||||||
#define VK_QNX_screen_surface 1
|
#define VK_QNX_screen_surface 1
|
||||||
#define VK_QNX_SCREEN_SURFACE_SPEC_VERSION 1
|
#define VK_QNX_SCREEN_SURFACE_SPEC_VERSION 1
|
||||||
#define VK_QNX_SCREEN_SURFACE_EXTENSION_NAME "VK_QNX_screen_surface"
|
#define VK_QNX_SCREEN_SURFACE_EXTENSION_NAME "VK_QNX_screen_surface"
|
||||||
|
@ -47,6 +48,59 @@ VKAPI_ATTR VkBool32 VKAPI_CALL vkGetPhysicalDeviceScreenPresentationSupportQNX(
|
||||||
struct _screen_window* window);
|
struct _screen_window* window);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
// VK_QNX_external_memory_screen_buffer is a preprocessor guard. Do not pass it to API calls.
|
||||||
|
#define VK_QNX_external_memory_screen_buffer 1
|
||||||
|
#define VK_QNX_EXTERNAL_MEMORY_SCREEN_BUFFER_SPEC_VERSION 1
|
||||||
|
#define VK_QNX_EXTERNAL_MEMORY_SCREEN_BUFFER_EXTENSION_NAME "VK_QNX_external_memory_screen_buffer"
|
||||||
|
typedef struct VkScreenBufferPropertiesQNX {
|
||||||
|
VkStructureType sType;
|
||||||
|
void* pNext;
|
||||||
|
VkDeviceSize allocationSize;
|
||||||
|
uint32_t memoryTypeBits;
|
||||||
|
} VkScreenBufferPropertiesQNX;
|
||||||
|
|
||||||
|
typedef struct VkScreenBufferFormatPropertiesQNX {
|
||||||
|
VkStructureType sType;
|
||||||
|
void* pNext;
|
||||||
|
VkFormat format;
|
||||||
|
uint64_t externalFormat;
|
||||||
|
uint64_t screenUsage;
|
||||||
|
VkFormatFeatureFlags formatFeatures;
|
||||||
|
VkComponentMapping samplerYcbcrConversionComponents;
|
||||||
|
VkSamplerYcbcrModelConversion suggestedYcbcrModel;
|
||||||
|
VkSamplerYcbcrRange suggestedYcbcrRange;
|
||||||
|
VkChromaLocation suggestedXChromaOffset;
|
||||||
|
VkChromaLocation suggestedYChromaOffset;
|
||||||
|
} VkScreenBufferFormatPropertiesQNX;
|
||||||
|
|
||||||
|
typedef struct VkImportScreenBufferInfoQNX {
|
||||||
|
VkStructureType sType;
|
||||||
|
const void* pNext;
|
||||||
|
struct _screen_buffer* buffer;
|
||||||
|
} VkImportScreenBufferInfoQNX;
|
||||||
|
|
||||||
|
typedef struct VkExternalFormatQNX {
|
||||||
|
VkStructureType sType;
|
||||||
|
void* pNext;
|
||||||
|
uint64_t externalFormat;
|
||||||
|
} VkExternalFormatQNX;
|
||||||
|
|
||||||
|
typedef struct VkPhysicalDeviceExternalMemoryScreenBufferFeaturesQNX {
|
||||||
|
VkStructureType sType;
|
||||||
|
void* pNext;
|
||||||
|
VkBool32 screenBufferImport;
|
||||||
|
} VkPhysicalDeviceExternalMemoryScreenBufferFeaturesQNX;
|
||||||
|
|
||||||
|
typedef VkResult (VKAPI_PTR *PFN_vkGetScreenBufferPropertiesQNX)(VkDevice device, const struct _screen_buffer* buffer, VkScreenBufferPropertiesQNX* pProperties);
|
||||||
|
|
||||||
|
#ifndef VK_NO_PROTOTYPES
|
||||||
|
VKAPI_ATTR VkResult VKAPI_CALL vkGetScreenBufferPropertiesQNX(
|
||||||
|
VkDevice device,
|
||||||
|
const struct _screen_buffer* buffer,
|
||||||
|
VkScreenBufferPropertiesQNX* pProperties);
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
#define VULKAN_VI_H_ 1
|
#define VULKAN_VI_H_ 1
|
||||||
|
|
||||||
/*
|
/*
|
||||||
** Copyright 2015-2021 The Khronos Group Inc.
|
** Copyright 2015-2023 The Khronos Group Inc.
|
||||||
**
|
**
|
||||||
** SPDX-License-Identifier: Apache-2.0
|
** SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
@ -19,6 +19,7 @@ extern "C" {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// VK_NN_vi_surface is a preprocessor guard. Do not pass it to API calls.
|
||||||
#define VK_NN_vi_surface 1
|
#define VK_NN_vi_surface 1
|
||||||
#define VK_NN_VI_SURFACE_SPEC_VERSION 1
|
#define VK_NN_VI_SURFACE_SPEC_VERSION 1
|
||||||
#define VK_NN_VI_SURFACE_EXTENSION_NAME "VK_NN_vi_surface"
|
#define VK_NN_VI_SURFACE_EXTENSION_NAME "VK_NN_vi_surface"
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
#define VULKAN_WAYLAND_H_ 1
|
#define VULKAN_WAYLAND_H_ 1
|
||||||
|
|
||||||
/*
|
/*
|
||||||
** Copyright 2015-2021 The Khronos Group Inc.
|
** Copyright 2015-2023 The Khronos Group Inc.
|
||||||
**
|
**
|
||||||
** SPDX-License-Identifier: Apache-2.0
|
** SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
@ -19,6 +19,7 @@ extern "C" {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// VK_KHR_wayland_surface is a preprocessor guard. Do not pass it to API calls.
|
||||||
#define VK_KHR_wayland_surface 1
|
#define VK_KHR_wayland_surface 1
|
||||||
#define VK_KHR_WAYLAND_SURFACE_SPEC_VERSION 6
|
#define VK_KHR_WAYLAND_SURFACE_SPEC_VERSION 6
|
||||||
#define VK_KHR_WAYLAND_SURFACE_EXTENSION_NAME "VK_KHR_wayland_surface"
|
#define VK_KHR_WAYLAND_SURFACE_EXTENSION_NAME "VK_KHR_wayland_surface"
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
#define VULKAN_WIN32_H_ 1
|
#define VULKAN_WIN32_H_ 1
|
||||||
|
|
||||||
/*
|
/*
|
||||||
** Copyright 2015-2021 The Khronos Group Inc.
|
** Copyright 2015-2023 The Khronos Group Inc.
|
||||||
**
|
**
|
||||||
** SPDX-License-Identifier: Apache-2.0
|
** SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
@ -19,6 +19,7 @@ extern "C" {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// VK_KHR_win32_surface is a preprocessor guard. Do not pass it to API calls.
|
||||||
#define VK_KHR_win32_surface 1
|
#define VK_KHR_win32_surface 1
|
||||||
#define VK_KHR_WIN32_SURFACE_SPEC_VERSION 6
|
#define VK_KHR_WIN32_SURFACE_SPEC_VERSION 6
|
||||||
#define VK_KHR_WIN32_SURFACE_EXTENSION_NAME "VK_KHR_win32_surface"
|
#define VK_KHR_WIN32_SURFACE_EXTENSION_NAME "VK_KHR_win32_surface"
|
||||||
|
@ -47,6 +48,7 @@ VKAPI_ATTR VkBool32 VKAPI_CALL vkGetPhysicalDeviceWin32PresentationSupportKHR(
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
// VK_KHR_external_memory_win32 is a preprocessor guard. Do not pass it to API calls.
|
||||||
#define VK_KHR_external_memory_win32 1
|
#define VK_KHR_external_memory_win32 1
|
||||||
#define VK_KHR_EXTERNAL_MEMORY_WIN32_SPEC_VERSION 1
|
#define VK_KHR_EXTERNAL_MEMORY_WIN32_SPEC_VERSION 1
|
||||||
#define VK_KHR_EXTERNAL_MEMORY_WIN32_EXTENSION_NAME "VK_KHR_external_memory_win32"
|
#define VK_KHR_EXTERNAL_MEMORY_WIN32_EXTENSION_NAME "VK_KHR_external_memory_win32"
|
||||||
|
@ -96,6 +98,7 @@ VKAPI_ATTR VkResult VKAPI_CALL vkGetMemoryWin32HandlePropertiesKHR(
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
// VK_KHR_win32_keyed_mutex is a preprocessor guard. Do not pass it to API calls.
|
||||||
#define VK_KHR_win32_keyed_mutex 1
|
#define VK_KHR_win32_keyed_mutex 1
|
||||||
#define VK_KHR_WIN32_KEYED_MUTEX_SPEC_VERSION 1
|
#define VK_KHR_WIN32_KEYED_MUTEX_SPEC_VERSION 1
|
||||||
#define VK_KHR_WIN32_KEYED_MUTEX_EXTENSION_NAME "VK_KHR_win32_keyed_mutex"
|
#define VK_KHR_WIN32_KEYED_MUTEX_EXTENSION_NAME "VK_KHR_win32_keyed_mutex"
|
||||||
|
@ -113,6 +116,7 @@ typedef struct VkWin32KeyedMutexAcquireReleaseInfoKHR {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// VK_KHR_external_semaphore_win32 is a preprocessor guard. Do not pass it to API calls.
|
||||||
#define VK_KHR_external_semaphore_win32 1
|
#define VK_KHR_external_semaphore_win32 1
|
||||||
#define VK_KHR_EXTERNAL_SEMAPHORE_WIN32_SPEC_VERSION 1
|
#define VK_KHR_EXTERNAL_SEMAPHORE_WIN32_SPEC_VERSION 1
|
||||||
#define VK_KHR_EXTERNAL_SEMAPHORE_WIN32_EXTENSION_NAME "VK_KHR_external_semaphore_win32"
|
#define VK_KHR_EXTERNAL_SEMAPHORE_WIN32_EXTENSION_NAME "VK_KHR_external_semaphore_win32"
|
||||||
|
@ -165,6 +169,7 @@ VKAPI_ATTR VkResult VKAPI_CALL vkGetSemaphoreWin32HandleKHR(
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
// VK_KHR_external_fence_win32 is a preprocessor guard. Do not pass it to API calls.
|
||||||
#define VK_KHR_external_fence_win32 1
|
#define VK_KHR_external_fence_win32 1
|
||||||
#define VK_KHR_EXTERNAL_FENCE_WIN32_SPEC_VERSION 1
|
#define VK_KHR_EXTERNAL_FENCE_WIN32_SPEC_VERSION 1
|
||||||
#define VK_KHR_EXTERNAL_FENCE_WIN32_EXTENSION_NAME "VK_KHR_external_fence_win32"
|
#define VK_KHR_EXTERNAL_FENCE_WIN32_EXTENSION_NAME "VK_KHR_external_fence_win32"
|
||||||
|
@ -208,6 +213,7 @@ VKAPI_ATTR VkResult VKAPI_CALL vkGetFenceWin32HandleKHR(
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
// VK_NV_external_memory_win32 is a preprocessor guard. Do not pass it to API calls.
|
||||||
#define VK_NV_external_memory_win32 1
|
#define VK_NV_external_memory_win32 1
|
||||||
#define VK_NV_EXTERNAL_MEMORY_WIN32_SPEC_VERSION 1
|
#define VK_NV_EXTERNAL_MEMORY_WIN32_SPEC_VERSION 1
|
||||||
#define VK_NV_EXTERNAL_MEMORY_WIN32_EXTENSION_NAME "VK_NV_external_memory_win32"
|
#define VK_NV_EXTERNAL_MEMORY_WIN32_EXTENSION_NAME "VK_NV_external_memory_win32"
|
||||||
|
@ -236,6 +242,7 @@ VKAPI_ATTR VkResult VKAPI_CALL vkGetMemoryWin32HandleNV(
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
// VK_NV_win32_keyed_mutex is a preprocessor guard. Do not pass it to API calls.
|
||||||
#define VK_NV_win32_keyed_mutex 1
|
#define VK_NV_win32_keyed_mutex 1
|
||||||
#define VK_NV_WIN32_KEYED_MUTEX_SPEC_VERSION 2
|
#define VK_NV_WIN32_KEYED_MUTEX_SPEC_VERSION 2
|
||||||
#define VK_NV_WIN32_KEYED_MUTEX_EXTENSION_NAME "VK_NV_win32_keyed_mutex"
|
#define VK_NV_WIN32_KEYED_MUTEX_EXTENSION_NAME "VK_NV_win32_keyed_mutex"
|
||||||
|
@ -253,6 +260,7 @@ typedef struct VkWin32KeyedMutexAcquireReleaseInfoNV {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// VK_EXT_full_screen_exclusive is a preprocessor guard. Do not pass it to API calls.
|
||||||
#define VK_EXT_full_screen_exclusive 1
|
#define VK_EXT_full_screen_exclusive 1
|
||||||
#define VK_EXT_FULL_SCREEN_EXCLUSIVE_SPEC_VERSION 4
|
#define VK_EXT_FULL_SCREEN_EXCLUSIVE_SPEC_VERSION 4
|
||||||
#define VK_EXT_FULL_SCREEN_EXCLUSIVE_EXTENSION_NAME "VK_EXT_full_screen_exclusive"
|
#define VK_EXT_FULL_SCREEN_EXCLUSIVE_EXTENSION_NAME "VK_EXT_full_screen_exclusive"
|
||||||
|
@ -308,6 +316,25 @@ VKAPI_ATTR VkResult VKAPI_CALL vkGetDeviceGroupSurfacePresentModes2EXT(
|
||||||
VkDeviceGroupPresentModeFlagsKHR* pModes);
|
VkDeviceGroupPresentModeFlagsKHR* pModes);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
// VK_NV_acquire_winrt_display is a preprocessor guard. Do not pass it to API calls.
|
||||||
|
#define VK_NV_acquire_winrt_display 1
|
||||||
|
#define VK_NV_ACQUIRE_WINRT_DISPLAY_SPEC_VERSION 1
|
||||||
|
#define VK_NV_ACQUIRE_WINRT_DISPLAY_EXTENSION_NAME "VK_NV_acquire_winrt_display"
|
||||||
|
typedef VkResult (VKAPI_PTR *PFN_vkAcquireWinrtDisplayNV)(VkPhysicalDevice physicalDevice, VkDisplayKHR display);
|
||||||
|
typedef VkResult (VKAPI_PTR *PFN_vkGetWinrtDisplayNV)(VkPhysicalDevice physicalDevice, uint32_t deviceRelativeId, VkDisplayKHR* pDisplay);
|
||||||
|
|
||||||
|
#ifndef VK_NO_PROTOTYPES
|
||||||
|
VKAPI_ATTR VkResult VKAPI_CALL vkAcquireWinrtDisplayNV(
|
||||||
|
VkPhysicalDevice physicalDevice,
|
||||||
|
VkDisplayKHR display);
|
||||||
|
|
||||||
|
VKAPI_ATTR VkResult VKAPI_CALL vkGetWinrtDisplayNV(
|
||||||
|
VkPhysicalDevice physicalDevice,
|
||||||
|
uint32_t deviceRelativeId,
|
||||||
|
VkDisplayKHR* pDisplay);
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
#define VULKAN_XCB_H_ 1
|
#define VULKAN_XCB_H_ 1
|
||||||
|
|
||||||
/*
|
/*
|
||||||
** Copyright 2015-2021 The Khronos Group Inc.
|
** Copyright 2015-2023 The Khronos Group Inc.
|
||||||
**
|
**
|
||||||
** SPDX-License-Identifier: Apache-2.0
|
** SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
@ -19,6 +19,7 @@ extern "C" {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// VK_KHR_xcb_surface is a preprocessor guard. Do not pass it to API calls.
|
||||||
#define VK_KHR_xcb_surface 1
|
#define VK_KHR_xcb_surface 1
|
||||||
#define VK_KHR_XCB_SURFACE_SPEC_VERSION 6
|
#define VK_KHR_XCB_SURFACE_SPEC_VERSION 6
|
||||||
#define VK_KHR_XCB_SURFACE_EXTENSION_NAME "VK_KHR_xcb_surface"
|
#define VK_KHR_XCB_SURFACE_EXTENSION_NAME "VK_KHR_xcb_surface"
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
#define VULKAN_XLIB_H_ 1
|
#define VULKAN_XLIB_H_ 1
|
||||||
|
|
||||||
/*
|
/*
|
||||||
** Copyright 2015-2021 The Khronos Group Inc.
|
** Copyright 2015-2023 The Khronos Group Inc.
|
||||||
**
|
**
|
||||||
** SPDX-License-Identifier: Apache-2.0
|
** SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
@ -19,6 +19,7 @@ extern "C" {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// VK_KHR_xlib_surface is a preprocessor guard. Do not pass it to API calls.
|
||||||
#define VK_KHR_xlib_surface 1
|
#define VK_KHR_xlib_surface 1
|
||||||
#define VK_KHR_XLIB_SURFACE_SPEC_VERSION 6
|
#define VK_KHR_XLIB_SURFACE_SPEC_VERSION 6
|
||||||
#define VK_KHR_XLIB_SURFACE_EXTENSION_NAME "VK_KHR_xlib_surface"
|
#define VK_KHR_XLIB_SURFACE_EXTENSION_NAME "VK_KHR_xlib_surface"
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
#define VULKAN_XLIB_XRANDR_H_ 1
|
#define VULKAN_XLIB_XRANDR_H_ 1
|
||||||
|
|
||||||
/*
|
/*
|
||||||
** Copyright 2015-2021 The Khronos Group Inc.
|
** Copyright 2015-2023 The Khronos Group Inc.
|
||||||
**
|
**
|
||||||
** SPDX-License-Identifier: Apache-2.0
|
** SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
@ -19,6 +19,7 @@ extern "C" {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// VK_EXT_acquire_xlib_display is a preprocessor guard. Do not pass it to API calls.
|
||||||
#define VK_EXT_acquire_xlib_display 1
|
#define VK_EXT_acquire_xlib_display 1
|
||||||
#define VK_EXT_ACQUIRE_XLIB_DISPLAY_SPEC_VERSION 1
|
#define VK_EXT_ACQUIRE_XLIB_DISPLAY_SPEC_VERSION 1
|
||||||
#define VK_EXT_ACQUIRE_XLIB_DISPLAY_EXTENSION_NAME "VK_EXT_acquire_xlib_display"
|
#define VK_EXT_ACQUIRE_XLIB_DISPLAY_EXTENSION_NAME "VK_EXT_acquire_xlib_display"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/**
|
/**
|
||||||
* volk
|
* volk
|
||||||
*
|
*
|
||||||
* Copyright (C) 2018-2019, by Arseny Kapoulkine (arseny.kapoulkine@gmail.com)
|
* Copyright (C) 2018-2023, by Arseny Kapoulkine (arseny.kapoulkine@gmail.com)
|
||||||
* Report bugs and download new versions at https://github.com/zeux/volk
|
* Report bugs and download new versions at https://github.com/zeux/volk
|
||||||
*
|
*
|
||||||
* This library is distributed under the MIT License. See notice at the end of this file.
|
* This library is distributed under the MIT License. See notice at the end of this file.
|
||||||
|
@ -15,7 +15,7 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* VOLK_GENERATE_VERSION_DEFINE */
|
/* VOLK_GENERATE_VERSION_DEFINE */
|
||||||
#define VOLK_HEADER_VERSION 190
|
#define VOLK_HEADER_VERSION 270
|
||||||
/* VOLK_GENERATE_VERSION_DEFINE */
|
/* VOLK_GENERATE_VERSION_DEFINE */
|
||||||
|
|
||||||
#ifndef VK_NO_PROTOTYPES
|
#ifndef VK_NO_PROTOTYPES
|
||||||
|
@ -23,8 +23,8 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef VULKAN_H_
|
#ifndef VULKAN_H_
|
||||||
# ifdef VOLK_VULKAN_H_PATH
|
# ifdef VOLK_VULKAN_H_PATH
|
||||||
# include VOLK_VULKAN_H_PATH
|
# include VOLK_VULKAN_H_PATH
|
||||||
# elif defined(VK_USE_PLATFORM_WIN32_KHR)
|
# elif defined(VK_USE_PLATFORM_WIN32_KHR)
|
||||||
# include <vulkan/vk_platform.h>
|
# include <vulkan/vk_platform.h>
|
||||||
# include <vulkan/vulkan_core.h>
|
# include <vulkan/vulkan_core.h>
|
||||||
|
@ -81,6 +81,11 @@ VkResult volkInitialize(void);
|
||||||
*/
|
*/
|
||||||
void volkInitializeCustom(PFN_vkGetInstanceProcAddr handler);
|
void volkInitializeCustom(PFN_vkGetInstanceProcAddr handler);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Finalize library by unloading Vulkan loader and resetting global symbols to NULL.
|
||||||
|
*/
|
||||||
|
void volkFinalize(void);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get Vulkan instance version supported by the Vulkan loader, or 0 if Vulkan isn't supported
|
* Get Vulkan instance version supported by the Vulkan loader, or 0 if Vulkan isn't supported
|
||||||
*
|
*
|
||||||
|
@ -285,6 +290,53 @@ struct VolkDeviceTable
|
||||||
PFN_vkSignalSemaphore vkSignalSemaphore;
|
PFN_vkSignalSemaphore vkSignalSemaphore;
|
||||||
PFN_vkWaitSemaphores vkWaitSemaphores;
|
PFN_vkWaitSemaphores vkWaitSemaphores;
|
||||||
#endif /* defined(VK_VERSION_1_2) */
|
#endif /* defined(VK_VERSION_1_2) */
|
||||||
|
#if defined(VK_VERSION_1_3)
|
||||||
|
PFN_vkCmdBeginRendering vkCmdBeginRendering;
|
||||||
|
PFN_vkCmdBindVertexBuffers2 vkCmdBindVertexBuffers2;
|
||||||
|
PFN_vkCmdBlitImage2 vkCmdBlitImage2;
|
||||||
|
PFN_vkCmdCopyBuffer2 vkCmdCopyBuffer2;
|
||||||
|
PFN_vkCmdCopyBufferToImage2 vkCmdCopyBufferToImage2;
|
||||||
|
PFN_vkCmdCopyImage2 vkCmdCopyImage2;
|
||||||
|
PFN_vkCmdCopyImageToBuffer2 vkCmdCopyImageToBuffer2;
|
||||||
|
PFN_vkCmdEndRendering vkCmdEndRendering;
|
||||||
|
PFN_vkCmdPipelineBarrier2 vkCmdPipelineBarrier2;
|
||||||
|
PFN_vkCmdResetEvent2 vkCmdResetEvent2;
|
||||||
|
PFN_vkCmdResolveImage2 vkCmdResolveImage2;
|
||||||
|
PFN_vkCmdSetCullMode vkCmdSetCullMode;
|
||||||
|
PFN_vkCmdSetDepthBiasEnable vkCmdSetDepthBiasEnable;
|
||||||
|
PFN_vkCmdSetDepthBoundsTestEnable vkCmdSetDepthBoundsTestEnable;
|
||||||
|
PFN_vkCmdSetDepthCompareOp vkCmdSetDepthCompareOp;
|
||||||
|
PFN_vkCmdSetDepthTestEnable vkCmdSetDepthTestEnable;
|
||||||
|
PFN_vkCmdSetDepthWriteEnable vkCmdSetDepthWriteEnable;
|
||||||
|
PFN_vkCmdSetEvent2 vkCmdSetEvent2;
|
||||||
|
PFN_vkCmdSetFrontFace vkCmdSetFrontFace;
|
||||||
|
PFN_vkCmdSetPrimitiveRestartEnable vkCmdSetPrimitiveRestartEnable;
|
||||||
|
PFN_vkCmdSetPrimitiveTopology vkCmdSetPrimitiveTopology;
|
||||||
|
PFN_vkCmdSetRasterizerDiscardEnable vkCmdSetRasterizerDiscardEnable;
|
||||||
|
PFN_vkCmdSetScissorWithCount vkCmdSetScissorWithCount;
|
||||||
|
PFN_vkCmdSetStencilOp vkCmdSetStencilOp;
|
||||||
|
PFN_vkCmdSetStencilTestEnable vkCmdSetStencilTestEnable;
|
||||||
|
PFN_vkCmdSetViewportWithCount vkCmdSetViewportWithCount;
|
||||||
|
PFN_vkCmdWaitEvents2 vkCmdWaitEvents2;
|
||||||
|
PFN_vkCmdWriteTimestamp2 vkCmdWriteTimestamp2;
|
||||||
|
PFN_vkCreatePrivateDataSlot vkCreatePrivateDataSlot;
|
||||||
|
PFN_vkDestroyPrivateDataSlot vkDestroyPrivateDataSlot;
|
||||||
|
PFN_vkGetDeviceBufferMemoryRequirements vkGetDeviceBufferMemoryRequirements;
|
||||||
|
PFN_vkGetDeviceImageMemoryRequirements vkGetDeviceImageMemoryRequirements;
|
||||||
|
PFN_vkGetDeviceImageSparseMemoryRequirements vkGetDeviceImageSparseMemoryRequirements;
|
||||||
|
PFN_vkGetPrivateData vkGetPrivateData;
|
||||||
|
PFN_vkQueueSubmit2 vkQueueSubmit2;
|
||||||
|
PFN_vkSetPrivateData vkSetPrivateData;
|
||||||
|
#endif /* defined(VK_VERSION_1_3) */
|
||||||
|
#if defined(VK_AMDX_shader_enqueue)
|
||||||
|
PFN_vkCmdDispatchGraphAMDX vkCmdDispatchGraphAMDX;
|
||||||
|
PFN_vkCmdDispatchGraphIndirectAMDX vkCmdDispatchGraphIndirectAMDX;
|
||||||
|
PFN_vkCmdDispatchGraphIndirectCountAMDX vkCmdDispatchGraphIndirectCountAMDX;
|
||||||
|
PFN_vkCmdInitializeGraphScratchMemoryAMDX vkCmdInitializeGraphScratchMemoryAMDX;
|
||||||
|
PFN_vkCreateExecutionGraphPipelinesAMDX vkCreateExecutionGraphPipelinesAMDX;
|
||||||
|
PFN_vkGetExecutionGraphPipelineNodeIndexAMDX vkGetExecutionGraphPipelineNodeIndexAMDX;
|
||||||
|
PFN_vkGetExecutionGraphPipelineScratchSizeAMDX vkGetExecutionGraphPipelineScratchSizeAMDX;
|
||||||
|
#endif /* defined(VK_AMDX_shader_enqueue) */
|
||||||
#if defined(VK_AMD_buffer_marker)
|
#if defined(VK_AMD_buffer_marker)
|
||||||
PFN_vkCmdWriteBufferMarkerAMD vkCmdWriteBufferMarkerAMD;
|
PFN_vkCmdWriteBufferMarkerAMD vkCmdWriteBufferMarkerAMD;
|
||||||
#endif /* defined(VK_AMD_buffer_marker) */
|
#endif /* defined(VK_AMD_buffer_marker) */
|
||||||
|
@ -302,6 +354,9 @@ struct VolkDeviceTable
|
||||||
PFN_vkGetAndroidHardwareBufferPropertiesANDROID vkGetAndroidHardwareBufferPropertiesANDROID;
|
PFN_vkGetAndroidHardwareBufferPropertiesANDROID vkGetAndroidHardwareBufferPropertiesANDROID;
|
||||||
PFN_vkGetMemoryAndroidHardwareBufferANDROID vkGetMemoryAndroidHardwareBufferANDROID;
|
PFN_vkGetMemoryAndroidHardwareBufferANDROID vkGetMemoryAndroidHardwareBufferANDROID;
|
||||||
#endif /* defined(VK_ANDROID_external_memory_android_hardware_buffer) */
|
#endif /* defined(VK_ANDROID_external_memory_android_hardware_buffer) */
|
||||||
|
#if defined(VK_EXT_attachment_feedback_loop_dynamic_state)
|
||||||
|
PFN_vkCmdSetAttachmentFeedbackLoopEnableEXT vkCmdSetAttachmentFeedbackLoopEnableEXT;
|
||||||
|
#endif /* defined(VK_EXT_attachment_feedback_loop_dynamic_state) */
|
||||||
#if defined(VK_EXT_buffer_device_address)
|
#if defined(VK_EXT_buffer_device_address)
|
||||||
PFN_vkGetBufferDeviceAddressEXT vkGetBufferDeviceAddressEXT;
|
PFN_vkGetBufferDeviceAddressEXT vkGetBufferDeviceAddressEXT;
|
||||||
#endif /* defined(VK_EXT_buffer_device_address) */
|
#endif /* defined(VK_EXT_buffer_device_address) */
|
||||||
|
@ -322,36 +377,40 @@ struct VolkDeviceTable
|
||||||
PFN_vkDebugMarkerSetObjectNameEXT vkDebugMarkerSetObjectNameEXT;
|
PFN_vkDebugMarkerSetObjectNameEXT vkDebugMarkerSetObjectNameEXT;
|
||||||
PFN_vkDebugMarkerSetObjectTagEXT vkDebugMarkerSetObjectTagEXT;
|
PFN_vkDebugMarkerSetObjectTagEXT vkDebugMarkerSetObjectTagEXT;
|
||||||
#endif /* defined(VK_EXT_debug_marker) */
|
#endif /* defined(VK_EXT_debug_marker) */
|
||||||
|
#if defined(VK_EXT_depth_bias_control)
|
||||||
|
PFN_vkCmdSetDepthBias2EXT vkCmdSetDepthBias2EXT;
|
||||||
|
#endif /* defined(VK_EXT_depth_bias_control) */
|
||||||
|
#if defined(VK_EXT_descriptor_buffer)
|
||||||
|
PFN_vkCmdBindDescriptorBufferEmbeddedSamplersEXT vkCmdBindDescriptorBufferEmbeddedSamplersEXT;
|
||||||
|
PFN_vkCmdBindDescriptorBuffersEXT vkCmdBindDescriptorBuffersEXT;
|
||||||
|
PFN_vkCmdSetDescriptorBufferOffsetsEXT vkCmdSetDescriptorBufferOffsetsEXT;
|
||||||
|
PFN_vkGetBufferOpaqueCaptureDescriptorDataEXT vkGetBufferOpaqueCaptureDescriptorDataEXT;
|
||||||
|
PFN_vkGetDescriptorEXT vkGetDescriptorEXT;
|
||||||
|
PFN_vkGetDescriptorSetLayoutBindingOffsetEXT vkGetDescriptorSetLayoutBindingOffsetEXT;
|
||||||
|
PFN_vkGetDescriptorSetLayoutSizeEXT vkGetDescriptorSetLayoutSizeEXT;
|
||||||
|
PFN_vkGetImageOpaqueCaptureDescriptorDataEXT vkGetImageOpaqueCaptureDescriptorDataEXT;
|
||||||
|
PFN_vkGetImageViewOpaqueCaptureDescriptorDataEXT vkGetImageViewOpaqueCaptureDescriptorDataEXT;
|
||||||
|
PFN_vkGetSamplerOpaqueCaptureDescriptorDataEXT vkGetSamplerOpaqueCaptureDescriptorDataEXT;
|
||||||
|
#endif /* defined(VK_EXT_descriptor_buffer) */
|
||||||
|
#if defined(VK_EXT_descriptor_buffer) && (defined(VK_KHR_acceleration_structure) || defined(VK_NV_ray_tracing))
|
||||||
|
PFN_vkGetAccelerationStructureOpaqueCaptureDescriptorDataEXT vkGetAccelerationStructureOpaqueCaptureDescriptorDataEXT;
|
||||||
|
#endif /* defined(VK_EXT_descriptor_buffer) && (defined(VK_KHR_acceleration_structure) || defined(VK_NV_ray_tracing)) */
|
||||||
|
#if defined(VK_EXT_device_fault)
|
||||||
|
PFN_vkGetDeviceFaultInfoEXT vkGetDeviceFaultInfoEXT;
|
||||||
|
#endif /* defined(VK_EXT_device_fault) */
|
||||||
#if defined(VK_EXT_discard_rectangles)
|
#if defined(VK_EXT_discard_rectangles)
|
||||||
PFN_vkCmdSetDiscardRectangleEXT vkCmdSetDiscardRectangleEXT;
|
PFN_vkCmdSetDiscardRectangleEXT vkCmdSetDiscardRectangleEXT;
|
||||||
#endif /* defined(VK_EXT_discard_rectangles) */
|
#endif /* defined(VK_EXT_discard_rectangles) */
|
||||||
|
#if defined(VK_EXT_discard_rectangles) && VK_EXT_DISCARD_RECTANGLES_SPEC_VERSION >= 2
|
||||||
|
PFN_vkCmdSetDiscardRectangleEnableEXT vkCmdSetDiscardRectangleEnableEXT;
|
||||||
|
PFN_vkCmdSetDiscardRectangleModeEXT vkCmdSetDiscardRectangleModeEXT;
|
||||||
|
#endif /* defined(VK_EXT_discard_rectangles) && VK_EXT_DISCARD_RECTANGLES_SPEC_VERSION >= 2 */
|
||||||
#if defined(VK_EXT_display_control)
|
#if defined(VK_EXT_display_control)
|
||||||
PFN_vkDisplayPowerControlEXT vkDisplayPowerControlEXT;
|
PFN_vkDisplayPowerControlEXT vkDisplayPowerControlEXT;
|
||||||
PFN_vkGetSwapchainCounterEXT vkGetSwapchainCounterEXT;
|
PFN_vkGetSwapchainCounterEXT vkGetSwapchainCounterEXT;
|
||||||
PFN_vkRegisterDeviceEventEXT vkRegisterDeviceEventEXT;
|
PFN_vkRegisterDeviceEventEXT vkRegisterDeviceEventEXT;
|
||||||
PFN_vkRegisterDisplayEventEXT vkRegisterDisplayEventEXT;
|
PFN_vkRegisterDisplayEventEXT vkRegisterDisplayEventEXT;
|
||||||
#endif /* defined(VK_EXT_display_control) */
|
#endif /* defined(VK_EXT_display_control) */
|
||||||
#if defined(VK_EXT_extended_dynamic_state)
|
|
||||||
PFN_vkCmdBindVertexBuffers2EXT vkCmdBindVertexBuffers2EXT;
|
|
||||||
PFN_vkCmdSetCullModeEXT vkCmdSetCullModeEXT;
|
|
||||||
PFN_vkCmdSetDepthBoundsTestEnableEXT vkCmdSetDepthBoundsTestEnableEXT;
|
|
||||||
PFN_vkCmdSetDepthCompareOpEXT vkCmdSetDepthCompareOpEXT;
|
|
||||||
PFN_vkCmdSetDepthTestEnableEXT vkCmdSetDepthTestEnableEXT;
|
|
||||||
PFN_vkCmdSetDepthWriteEnableEXT vkCmdSetDepthWriteEnableEXT;
|
|
||||||
PFN_vkCmdSetFrontFaceEXT vkCmdSetFrontFaceEXT;
|
|
||||||
PFN_vkCmdSetPrimitiveTopologyEXT vkCmdSetPrimitiveTopologyEXT;
|
|
||||||
PFN_vkCmdSetScissorWithCountEXT vkCmdSetScissorWithCountEXT;
|
|
||||||
PFN_vkCmdSetStencilOpEXT vkCmdSetStencilOpEXT;
|
|
||||||
PFN_vkCmdSetStencilTestEnableEXT vkCmdSetStencilTestEnableEXT;
|
|
||||||
PFN_vkCmdSetViewportWithCountEXT vkCmdSetViewportWithCountEXT;
|
|
||||||
#endif /* defined(VK_EXT_extended_dynamic_state) */
|
|
||||||
#if defined(VK_EXT_extended_dynamic_state2)
|
|
||||||
PFN_vkCmdSetDepthBiasEnableEXT vkCmdSetDepthBiasEnableEXT;
|
|
||||||
PFN_vkCmdSetLogicOpEXT vkCmdSetLogicOpEXT;
|
|
||||||
PFN_vkCmdSetPatchControlPointsEXT vkCmdSetPatchControlPointsEXT;
|
|
||||||
PFN_vkCmdSetPrimitiveRestartEnableEXT vkCmdSetPrimitiveRestartEnableEXT;
|
|
||||||
PFN_vkCmdSetRasterizerDiscardEnableEXT vkCmdSetRasterizerDiscardEnableEXT;
|
|
||||||
#endif /* defined(VK_EXT_extended_dynamic_state2) */
|
|
||||||
#if defined(VK_EXT_external_memory_host)
|
#if defined(VK_EXT_external_memory_host)
|
||||||
PFN_vkGetMemoryHostPointerPropertiesEXT vkGetMemoryHostPointerPropertiesEXT;
|
PFN_vkGetMemoryHostPointerPropertiesEXT vkGetMemoryHostPointerPropertiesEXT;
|
||||||
#endif /* defined(VK_EXT_external_memory_host) */
|
#endif /* defined(VK_EXT_external_memory_host) */
|
||||||
|
@ -362,6 +421,12 @@ struct VolkDeviceTable
|
||||||
#if defined(VK_EXT_hdr_metadata)
|
#if defined(VK_EXT_hdr_metadata)
|
||||||
PFN_vkSetHdrMetadataEXT vkSetHdrMetadataEXT;
|
PFN_vkSetHdrMetadataEXT vkSetHdrMetadataEXT;
|
||||||
#endif /* defined(VK_EXT_hdr_metadata) */
|
#endif /* defined(VK_EXT_hdr_metadata) */
|
||||||
|
#if defined(VK_EXT_host_image_copy)
|
||||||
|
PFN_vkCopyImageToImageEXT vkCopyImageToImageEXT;
|
||||||
|
PFN_vkCopyImageToMemoryEXT vkCopyImageToMemoryEXT;
|
||||||
|
PFN_vkCopyMemoryToImageEXT vkCopyMemoryToImageEXT;
|
||||||
|
PFN_vkTransitionImageLayoutEXT vkTransitionImageLayoutEXT;
|
||||||
|
#endif /* defined(VK_EXT_host_image_copy) */
|
||||||
#if defined(VK_EXT_host_query_reset)
|
#if defined(VK_EXT_host_query_reset)
|
||||||
PFN_vkResetQueryPoolEXT vkResetQueryPoolEXT;
|
PFN_vkResetQueryPoolEXT vkResetQueryPoolEXT;
|
||||||
#endif /* defined(VK_EXT_host_query_reset) */
|
#endif /* defined(VK_EXT_host_query_reset) */
|
||||||
|
@ -371,10 +436,40 @@ struct VolkDeviceTable
|
||||||
#if defined(VK_EXT_line_rasterization)
|
#if defined(VK_EXT_line_rasterization)
|
||||||
PFN_vkCmdSetLineStippleEXT vkCmdSetLineStippleEXT;
|
PFN_vkCmdSetLineStippleEXT vkCmdSetLineStippleEXT;
|
||||||
#endif /* defined(VK_EXT_line_rasterization) */
|
#endif /* defined(VK_EXT_line_rasterization) */
|
||||||
|
#if defined(VK_EXT_mesh_shader)
|
||||||
|
PFN_vkCmdDrawMeshTasksEXT vkCmdDrawMeshTasksEXT;
|
||||||
|
PFN_vkCmdDrawMeshTasksIndirectCountEXT vkCmdDrawMeshTasksIndirectCountEXT;
|
||||||
|
PFN_vkCmdDrawMeshTasksIndirectEXT vkCmdDrawMeshTasksIndirectEXT;
|
||||||
|
#endif /* defined(VK_EXT_mesh_shader) */
|
||||||
|
#if defined(VK_EXT_metal_objects)
|
||||||
|
PFN_vkExportMetalObjectsEXT vkExportMetalObjectsEXT;
|
||||||
|
#endif /* defined(VK_EXT_metal_objects) */
|
||||||
#if defined(VK_EXT_multi_draw)
|
#if defined(VK_EXT_multi_draw)
|
||||||
PFN_vkCmdDrawMultiEXT vkCmdDrawMultiEXT;
|
PFN_vkCmdDrawMultiEXT vkCmdDrawMultiEXT;
|
||||||
PFN_vkCmdDrawMultiIndexedEXT vkCmdDrawMultiIndexedEXT;
|
PFN_vkCmdDrawMultiIndexedEXT vkCmdDrawMultiIndexedEXT;
|
||||||
#endif /* defined(VK_EXT_multi_draw) */
|
#endif /* defined(VK_EXT_multi_draw) */
|
||||||
|
#if defined(VK_EXT_opacity_micromap)
|
||||||
|
PFN_vkBuildMicromapsEXT vkBuildMicromapsEXT;
|
||||||
|
PFN_vkCmdBuildMicromapsEXT vkCmdBuildMicromapsEXT;
|
||||||
|
PFN_vkCmdCopyMemoryToMicromapEXT vkCmdCopyMemoryToMicromapEXT;
|
||||||
|
PFN_vkCmdCopyMicromapEXT vkCmdCopyMicromapEXT;
|
||||||
|
PFN_vkCmdCopyMicromapToMemoryEXT vkCmdCopyMicromapToMemoryEXT;
|
||||||
|
PFN_vkCmdWriteMicromapsPropertiesEXT vkCmdWriteMicromapsPropertiesEXT;
|
||||||
|
PFN_vkCopyMemoryToMicromapEXT vkCopyMemoryToMicromapEXT;
|
||||||
|
PFN_vkCopyMicromapEXT vkCopyMicromapEXT;
|
||||||
|
PFN_vkCopyMicromapToMemoryEXT vkCopyMicromapToMemoryEXT;
|
||||||
|
PFN_vkCreateMicromapEXT vkCreateMicromapEXT;
|
||||||
|
PFN_vkDestroyMicromapEXT vkDestroyMicromapEXT;
|
||||||
|
PFN_vkGetDeviceMicromapCompatibilityEXT vkGetDeviceMicromapCompatibilityEXT;
|
||||||
|
PFN_vkGetMicromapBuildSizesEXT vkGetMicromapBuildSizesEXT;
|
||||||
|
PFN_vkWriteMicromapsPropertiesEXT vkWriteMicromapsPropertiesEXT;
|
||||||
|
#endif /* defined(VK_EXT_opacity_micromap) */
|
||||||
|
#if defined(VK_EXT_pageable_device_local_memory)
|
||||||
|
PFN_vkSetDeviceMemoryPriorityEXT vkSetDeviceMemoryPriorityEXT;
|
||||||
|
#endif /* defined(VK_EXT_pageable_device_local_memory) */
|
||||||
|
#if defined(VK_EXT_pipeline_properties)
|
||||||
|
PFN_vkGetPipelinePropertiesEXT vkGetPipelinePropertiesEXT;
|
||||||
|
#endif /* defined(VK_EXT_pipeline_properties) */
|
||||||
#if defined(VK_EXT_private_data)
|
#if defined(VK_EXT_private_data)
|
||||||
PFN_vkCreatePrivateDataSlotEXT vkCreatePrivateDataSlotEXT;
|
PFN_vkCreatePrivateDataSlotEXT vkCreatePrivateDataSlotEXT;
|
||||||
PFN_vkDestroyPrivateDataSlotEXT vkDestroyPrivateDataSlotEXT;
|
PFN_vkDestroyPrivateDataSlotEXT vkDestroyPrivateDataSlotEXT;
|
||||||
|
@ -384,6 +479,19 @@ struct VolkDeviceTable
|
||||||
#if defined(VK_EXT_sample_locations)
|
#if defined(VK_EXT_sample_locations)
|
||||||
PFN_vkCmdSetSampleLocationsEXT vkCmdSetSampleLocationsEXT;
|
PFN_vkCmdSetSampleLocationsEXT vkCmdSetSampleLocationsEXT;
|
||||||
#endif /* defined(VK_EXT_sample_locations) */
|
#endif /* defined(VK_EXT_sample_locations) */
|
||||||
|
#if defined(VK_EXT_shader_module_identifier)
|
||||||
|
PFN_vkGetShaderModuleCreateInfoIdentifierEXT vkGetShaderModuleCreateInfoIdentifierEXT;
|
||||||
|
PFN_vkGetShaderModuleIdentifierEXT vkGetShaderModuleIdentifierEXT;
|
||||||
|
#endif /* defined(VK_EXT_shader_module_identifier) */
|
||||||
|
#if defined(VK_EXT_shader_object)
|
||||||
|
PFN_vkCmdBindShadersEXT vkCmdBindShadersEXT;
|
||||||
|
PFN_vkCreateShadersEXT vkCreateShadersEXT;
|
||||||
|
PFN_vkDestroyShaderEXT vkDestroyShaderEXT;
|
||||||
|
PFN_vkGetShaderBinaryDataEXT vkGetShaderBinaryDataEXT;
|
||||||
|
#endif /* defined(VK_EXT_shader_object) */
|
||||||
|
#if defined(VK_EXT_swapchain_maintenance1)
|
||||||
|
PFN_vkReleaseSwapchainImagesEXT vkReleaseSwapchainImagesEXT;
|
||||||
|
#endif /* defined(VK_EXT_swapchain_maintenance1) */
|
||||||
#if defined(VK_EXT_transform_feedback)
|
#if defined(VK_EXT_transform_feedback)
|
||||||
PFN_vkCmdBeginQueryIndexedEXT vkCmdBeginQueryIndexedEXT;
|
PFN_vkCmdBeginQueryIndexedEXT vkCmdBeginQueryIndexedEXT;
|
||||||
PFN_vkCmdBeginTransformFeedbackEXT vkCmdBeginTransformFeedbackEXT;
|
PFN_vkCmdBeginTransformFeedbackEXT vkCmdBeginTransformFeedbackEXT;
|
||||||
|
@ -398,9 +506,13 @@ struct VolkDeviceTable
|
||||||
PFN_vkGetValidationCacheDataEXT vkGetValidationCacheDataEXT;
|
PFN_vkGetValidationCacheDataEXT vkGetValidationCacheDataEXT;
|
||||||
PFN_vkMergeValidationCachesEXT vkMergeValidationCachesEXT;
|
PFN_vkMergeValidationCachesEXT vkMergeValidationCachesEXT;
|
||||||
#endif /* defined(VK_EXT_validation_cache) */
|
#endif /* defined(VK_EXT_validation_cache) */
|
||||||
#if defined(VK_EXT_vertex_input_dynamic_state)
|
#if defined(VK_FUCHSIA_buffer_collection)
|
||||||
PFN_vkCmdSetVertexInputEXT vkCmdSetVertexInputEXT;
|
PFN_vkCreateBufferCollectionFUCHSIA vkCreateBufferCollectionFUCHSIA;
|
||||||
#endif /* defined(VK_EXT_vertex_input_dynamic_state) */
|
PFN_vkDestroyBufferCollectionFUCHSIA vkDestroyBufferCollectionFUCHSIA;
|
||||||
|
PFN_vkGetBufferCollectionPropertiesFUCHSIA vkGetBufferCollectionPropertiesFUCHSIA;
|
||||||
|
PFN_vkSetBufferCollectionBufferConstraintsFUCHSIA vkSetBufferCollectionBufferConstraintsFUCHSIA;
|
||||||
|
PFN_vkSetBufferCollectionImageConstraintsFUCHSIA vkSetBufferCollectionImageConstraintsFUCHSIA;
|
||||||
|
#endif /* defined(VK_FUCHSIA_buffer_collection) */
|
||||||
#if defined(VK_FUCHSIA_external_memory)
|
#if defined(VK_FUCHSIA_external_memory)
|
||||||
PFN_vkGetMemoryZirconHandleFUCHSIA vkGetMemoryZirconHandleFUCHSIA;
|
PFN_vkGetMemoryZirconHandleFUCHSIA vkGetMemoryZirconHandleFUCHSIA;
|
||||||
PFN_vkGetMemoryZirconHandlePropertiesFUCHSIA vkGetMemoryZirconHandlePropertiesFUCHSIA;
|
PFN_vkGetMemoryZirconHandlePropertiesFUCHSIA vkGetMemoryZirconHandlePropertiesFUCHSIA;
|
||||||
|
@ -413,6 +525,10 @@ struct VolkDeviceTable
|
||||||
PFN_vkGetPastPresentationTimingGOOGLE vkGetPastPresentationTimingGOOGLE;
|
PFN_vkGetPastPresentationTimingGOOGLE vkGetPastPresentationTimingGOOGLE;
|
||||||
PFN_vkGetRefreshCycleDurationGOOGLE vkGetRefreshCycleDurationGOOGLE;
|
PFN_vkGetRefreshCycleDurationGOOGLE vkGetRefreshCycleDurationGOOGLE;
|
||||||
#endif /* defined(VK_GOOGLE_display_timing) */
|
#endif /* defined(VK_GOOGLE_display_timing) */
|
||||||
|
#if defined(VK_HUAWEI_cluster_culling_shader)
|
||||||
|
PFN_vkCmdDrawClusterHUAWEI vkCmdDrawClusterHUAWEI;
|
||||||
|
PFN_vkCmdDrawClusterIndirectHUAWEI vkCmdDrawClusterIndirectHUAWEI;
|
||||||
|
#endif /* defined(VK_HUAWEI_cluster_culling_shader) */
|
||||||
#if defined(VK_HUAWEI_invocation_mask)
|
#if defined(VK_HUAWEI_invocation_mask)
|
||||||
PFN_vkCmdBindInvocationMaskHUAWEI vkCmdBindInvocationMaskHUAWEI;
|
PFN_vkCmdBindInvocationMaskHUAWEI vkCmdBindInvocationMaskHUAWEI;
|
||||||
#endif /* defined(VK_HUAWEI_invocation_mask) */
|
#endif /* defined(VK_HUAWEI_invocation_mask) */
|
||||||
|
@ -496,6 +612,10 @@ struct VolkDeviceTable
|
||||||
PFN_vkCmdDrawIndexedIndirectCountKHR vkCmdDrawIndexedIndirectCountKHR;
|
PFN_vkCmdDrawIndexedIndirectCountKHR vkCmdDrawIndexedIndirectCountKHR;
|
||||||
PFN_vkCmdDrawIndirectCountKHR vkCmdDrawIndirectCountKHR;
|
PFN_vkCmdDrawIndirectCountKHR vkCmdDrawIndirectCountKHR;
|
||||||
#endif /* defined(VK_KHR_draw_indirect_count) */
|
#endif /* defined(VK_KHR_draw_indirect_count) */
|
||||||
|
#if defined(VK_KHR_dynamic_rendering)
|
||||||
|
PFN_vkCmdBeginRenderingKHR vkCmdBeginRenderingKHR;
|
||||||
|
PFN_vkCmdEndRenderingKHR vkCmdEndRenderingKHR;
|
||||||
|
#endif /* defined(VK_KHR_dynamic_rendering) */
|
||||||
#if defined(VK_KHR_external_fence_fd)
|
#if defined(VK_KHR_external_fence_fd)
|
||||||
PFN_vkGetFenceFdKHR vkGetFenceFdKHR;
|
PFN_vkGetFenceFdKHR vkGetFenceFdKHR;
|
||||||
PFN_vkImportFenceFdKHR vkImportFenceFdKHR;
|
PFN_vkImportFenceFdKHR vkImportFenceFdKHR;
|
||||||
|
@ -534,6 +654,21 @@ struct VolkDeviceTable
|
||||||
#if defined(VK_KHR_maintenance3)
|
#if defined(VK_KHR_maintenance3)
|
||||||
PFN_vkGetDescriptorSetLayoutSupportKHR vkGetDescriptorSetLayoutSupportKHR;
|
PFN_vkGetDescriptorSetLayoutSupportKHR vkGetDescriptorSetLayoutSupportKHR;
|
||||||
#endif /* defined(VK_KHR_maintenance3) */
|
#endif /* defined(VK_KHR_maintenance3) */
|
||||||
|
#if defined(VK_KHR_maintenance4)
|
||||||
|
PFN_vkGetDeviceBufferMemoryRequirementsKHR vkGetDeviceBufferMemoryRequirementsKHR;
|
||||||
|
PFN_vkGetDeviceImageMemoryRequirementsKHR vkGetDeviceImageMemoryRequirementsKHR;
|
||||||
|
PFN_vkGetDeviceImageSparseMemoryRequirementsKHR vkGetDeviceImageSparseMemoryRequirementsKHR;
|
||||||
|
#endif /* defined(VK_KHR_maintenance4) */
|
||||||
|
#if defined(VK_KHR_maintenance5)
|
||||||
|
PFN_vkCmdBindIndexBuffer2KHR vkCmdBindIndexBuffer2KHR;
|
||||||
|
PFN_vkGetDeviceImageSubresourceLayoutKHR vkGetDeviceImageSubresourceLayoutKHR;
|
||||||
|
PFN_vkGetImageSubresourceLayout2KHR vkGetImageSubresourceLayout2KHR;
|
||||||
|
PFN_vkGetRenderingAreaGranularityKHR vkGetRenderingAreaGranularityKHR;
|
||||||
|
#endif /* defined(VK_KHR_maintenance5) */
|
||||||
|
#if defined(VK_KHR_map_memory2)
|
||||||
|
PFN_vkMapMemory2KHR vkMapMemory2KHR;
|
||||||
|
PFN_vkUnmapMemory2KHR vkUnmapMemory2KHR;
|
||||||
|
#endif /* defined(VK_KHR_map_memory2) */
|
||||||
#if defined(VK_KHR_performance_query)
|
#if defined(VK_KHR_performance_query)
|
||||||
PFN_vkAcquireProfilingLockKHR vkAcquireProfilingLockKHR;
|
PFN_vkAcquireProfilingLockKHR vkAcquireProfilingLockKHR;
|
||||||
PFN_vkReleaseProfilingLockKHR vkReleaseProfilingLockKHR;
|
PFN_vkReleaseProfilingLockKHR vkReleaseProfilingLockKHR;
|
||||||
|
@ -549,6 +684,9 @@ struct VolkDeviceTable
|
||||||
#if defined(VK_KHR_push_descriptor)
|
#if defined(VK_KHR_push_descriptor)
|
||||||
PFN_vkCmdPushDescriptorSetKHR vkCmdPushDescriptorSetKHR;
|
PFN_vkCmdPushDescriptorSetKHR vkCmdPushDescriptorSetKHR;
|
||||||
#endif /* defined(VK_KHR_push_descriptor) */
|
#endif /* defined(VK_KHR_push_descriptor) */
|
||||||
|
#if defined(VK_KHR_ray_tracing_maintenance1) && defined(VK_KHR_ray_tracing_pipeline)
|
||||||
|
PFN_vkCmdTraceRaysIndirect2KHR vkCmdTraceRaysIndirect2KHR;
|
||||||
|
#endif /* defined(VK_KHR_ray_tracing_maintenance1) && defined(VK_KHR_ray_tracing_pipeline) */
|
||||||
#if defined(VK_KHR_ray_tracing_pipeline)
|
#if defined(VK_KHR_ray_tracing_pipeline)
|
||||||
PFN_vkCmdSetRayTracingPipelineStackSizeKHR vkCmdSetRayTracingPipelineStackSizeKHR;
|
PFN_vkCmdSetRayTracingPipelineStackSizeKHR vkCmdSetRayTracingPipelineStackSizeKHR;
|
||||||
PFN_vkCmdTraceRaysIndirectKHR vkCmdTraceRaysIndirectKHR;
|
PFN_vkCmdTraceRaysIndirectKHR vkCmdTraceRaysIndirectKHR;
|
||||||
|
@ -596,6 +734,7 @@ struct VolkDeviceTable
|
||||||
#endif /* defined(VK_KHR_video_decode_queue) */
|
#endif /* defined(VK_KHR_video_decode_queue) */
|
||||||
#if defined(VK_KHR_video_encode_queue)
|
#if defined(VK_KHR_video_encode_queue)
|
||||||
PFN_vkCmdEncodeVideoKHR vkCmdEncodeVideoKHR;
|
PFN_vkCmdEncodeVideoKHR vkCmdEncodeVideoKHR;
|
||||||
|
PFN_vkGetEncodedVideoSessionParametersKHR vkGetEncodedVideoSessionParametersKHR;
|
||||||
#endif /* defined(VK_KHR_video_encode_queue) */
|
#endif /* defined(VK_KHR_video_encode_queue) */
|
||||||
#if defined(VK_KHR_video_queue)
|
#if defined(VK_KHR_video_queue)
|
||||||
PFN_vkBindVideoSessionMemoryKHR vkBindVideoSessionMemoryKHR;
|
PFN_vkBindVideoSessionMemoryKHR vkBindVideoSessionMemoryKHR;
|
||||||
|
@ -623,6 +762,18 @@ struct VolkDeviceTable
|
||||||
#if defined(VK_NV_clip_space_w_scaling)
|
#if defined(VK_NV_clip_space_w_scaling)
|
||||||
PFN_vkCmdSetViewportWScalingNV vkCmdSetViewportWScalingNV;
|
PFN_vkCmdSetViewportWScalingNV vkCmdSetViewportWScalingNV;
|
||||||
#endif /* defined(VK_NV_clip_space_w_scaling) */
|
#endif /* defined(VK_NV_clip_space_w_scaling) */
|
||||||
|
#if defined(VK_NV_copy_memory_indirect)
|
||||||
|
PFN_vkCmdCopyMemoryIndirectNV vkCmdCopyMemoryIndirectNV;
|
||||||
|
PFN_vkCmdCopyMemoryToImageIndirectNV vkCmdCopyMemoryToImageIndirectNV;
|
||||||
|
#endif /* defined(VK_NV_copy_memory_indirect) */
|
||||||
|
#if defined(VK_NV_cuda_kernel_launch)
|
||||||
|
PFN_vkCmdCudaLaunchKernelNV vkCmdCudaLaunchKernelNV;
|
||||||
|
PFN_vkCreateCudaFunctionNV vkCreateCudaFunctionNV;
|
||||||
|
PFN_vkCreateCudaModuleNV vkCreateCudaModuleNV;
|
||||||
|
PFN_vkDestroyCudaFunctionNV vkDestroyCudaFunctionNV;
|
||||||
|
PFN_vkDestroyCudaModuleNV vkDestroyCudaModuleNV;
|
||||||
|
PFN_vkGetCudaModuleCacheNV vkGetCudaModuleCacheNV;
|
||||||
|
#endif /* defined(VK_NV_cuda_kernel_launch) */
|
||||||
#if defined(VK_NV_device_diagnostic_checkpoints)
|
#if defined(VK_NV_device_diagnostic_checkpoints)
|
||||||
PFN_vkCmdSetCheckpointNV vkCmdSetCheckpointNV;
|
PFN_vkCmdSetCheckpointNV vkCmdSetCheckpointNV;
|
||||||
PFN_vkGetQueueCheckpointDataNV vkGetQueueCheckpointDataNV;
|
PFN_vkGetQueueCheckpointDataNV vkGetQueueCheckpointDataNV;
|
||||||
|
@ -635,6 +786,11 @@ struct VolkDeviceTable
|
||||||
PFN_vkDestroyIndirectCommandsLayoutNV vkDestroyIndirectCommandsLayoutNV;
|
PFN_vkDestroyIndirectCommandsLayoutNV vkDestroyIndirectCommandsLayoutNV;
|
||||||
PFN_vkGetGeneratedCommandsMemoryRequirementsNV vkGetGeneratedCommandsMemoryRequirementsNV;
|
PFN_vkGetGeneratedCommandsMemoryRequirementsNV vkGetGeneratedCommandsMemoryRequirementsNV;
|
||||||
#endif /* defined(VK_NV_device_generated_commands) */
|
#endif /* defined(VK_NV_device_generated_commands) */
|
||||||
|
#if defined(VK_NV_device_generated_commands_compute)
|
||||||
|
PFN_vkCmdUpdatePipelineIndirectBufferNV vkCmdUpdatePipelineIndirectBufferNV;
|
||||||
|
PFN_vkGetPipelineIndirectDeviceAddressNV vkGetPipelineIndirectDeviceAddressNV;
|
||||||
|
PFN_vkGetPipelineIndirectMemoryRequirementsNV vkGetPipelineIndirectMemoryRequirementsNV;
|
||||||
|
#endif /* defined(VK_NV_device_generated_commands_compute) */
|
||||||
#if defined(VK_NV_external_memory_rdma)
|
#if defined(VK_NV_external_memory_rdma)
|
||||||
PFN_vkGetMemoryRemoteAddressNV vkGetMemoryRemoteAddressNV;
|
PFN_vkGetMemoryRemoteAddressNV vkGetMemoryRemoteAddressNV;
|
||||||
#endif /* defined(VK_NV_external_memory_rdma) */
|
#endif /* defined(VK_NV_external_memory_rdma) */
|
||||||
|
@ -644,11 +800,28 @@ struct VolkDeviceTable
|
||||||
#if defined(VK_NV_fragment_shading_rate_enums)
|
#if defined(VK_NV_fragment_shading_rate_enums)
|
||||||
PFN_vkCmdSetFragmentShadingRateEnumNV vkCmdSetFragmentShadingRateEnumNV;
|
PFN_vkCmdSetFragmentShadingRateEnumNV vkCmdSetFragmentShadingRateEnumNV;
|
||||||
#endif /* defined(VK_NV_fragment_shading_rate_enums) */
|
#endif /* defined(VK_NV_fragment_shading_rate_enums) */
|
||||||
|
#if defined(VK_NV_low_latency2)
|
||||||
|
PFN_vkGetLatencyTimingsNV vkGetLatencyTimingsNV;
|
||||||
|
PFN_vkLatencySleepNV vkLatencySleepNV;
|
||||||
|
PFN_vkQueueNotifyOutOfBandNV vkQueueNotifyOutOfBandNV;
|
||||||
|
PFN_vkSetLatencyMarkerNV vkSetLatencyMarkerNV;
|
||||||
|
PFN_vkSetLatencySleepModeNV vkSetLatencySleepModeNV;
|
||||||
|
#endif /* defined(VK_NV_low_latency2) */
|
||||||
|
#if defined(VK_NV_memory_decompression)
|
||||||
|
PFN_vkCmdDecompressMemoryIndirectCountNV vkCmdDecompressMemoryIndirectCountNV;
|
||||||
|
PFN_vkCmdDecompressMemoryNV vkCmdDecompressMemoryNV;
|
||||||
|
#endif /* defined(VK_NV_memory_decompression) */
|
||||||
#if defined(VK_NV_mesh_shader)
|
#if defined(VK_NV_mesh_shader)
|
||||||
PFN_vkCmdDrawMeshTasksIndirectCountNV vkCmdDrawMeshTasksIndirectCountNV;
|
PFN_vkCmdDrawMeshTasksIndirectCountNV vkCmdDrawMeshTasksIndirectCountNV;
|
||||||
PFN_vkCmdDrawMeshTasksIndirectNV vkCmdDrawMeshTasksIndirectNV;
|
PFN_vkCmdDrawMeshTasksIndirectNV vkCmdDrawMeshTasksIndirectNV;
|
||||||
PFN_vkCmdDrawMeshTasksNV vkCmdDrawMeshTasksNV;
|
PFN_vkCmdDrawMeshTasksNV vkCmdDrawMeshTasksNV;
|
||||||
#endif /* defined(VK_NV_mesh_shader) */
|
#endif /* defined(VK_NV_mesh_shader) */
|
||||||
|
#if defined(VK_NV_optical_flow)
|
||||||
|
PFN_vkBindOpticalFlowSessionImageNV vkBindOpticalFlowSessionImageNV;
|
||||||
|
PFN_vkCmdOpticalFlowExecuteNV vkCmdOpticalFlowExecuteNV;
|
||||||
|
PFN_vkCreateOpticalFlowSessionNV vkCreateOpticalFlowSessionNV;
|
||||||
|
PFN_vkDestroyOpticalFlowSessionNV vkDestroyOpticalFlowSessionNV;
|
||||||
|
#endif /* defined(VK_NV_optical_flow) */
|
||||||
#if defined(VK_NV_ray_tracing)
|
#if defined(VK_NV_ray_tracing)
|
||||||
PFN_vkBindAccelerationStructureMemoryNV vkBindAccelerationStructureMemoryNV;
|
PFN_vkBindAccelerationStructureMemoryNV vkBindAccelerationStructureMemoryNV;
|
||||||
PFN_vkCmdBuildAccelerationStructureNV vkCmdBuildAccelerationStructureNV;
|
PFN_vkCmdBuildAccelerationStructureNV vkCmdBuildAccelerationStructureNV;
|
||||||
|
@ -663,6 +836,9 @@ struct VolkDeviceTable
|
||||||
PFN_vkGetAccelerationStructureMemoryRequirementsNV vkGetAccelerationStructureMemoryRequirementsNV;
|
PFN_vkGetAccelerationStructureMemoryRequirementsNV vkGetAccelerationStructureMemoryRequirementsNV;
|
||||||
PFN_vkGetRayTracingShaderGroupHandlesNV vkGetRayTracingShaderGroupHandlesNV;
|
PFN_vkGetRayTracingShaderGroupHandlesNV vkGetRayTracingShaderGroupHandlesNV;
|
||||||
#endif /* defined(VK_NV_ray_tracing) */
|
#endif /* defined(VK_NV_ray_tracing) */
|
||||||
|
#if defined(VK_NV_scissor_exclusive) && VK_NV_SCISSOR_EXCLUSIVE_SPEC_VERSION >= 2
|
||||||
|
PFN_vkCmdSetExclusiveScissorEnableNV vkCmdSetExclusiveScissorEnableNV;
|
||||||
|
#endif /* defined(VK_NV_scissor_exclusive) && VK_NV_SCISSOR_EXCLUSIVE_SPEC_VERSION >= 2 */
|
||||||
#if defined(VK_NV_scissor_exclusive)
|
#if defined(VK_NV_scissor_exclusive)
|
||||||
PFN_vkCmdSetExclusiveScissorNV vkCmdSetExclusiveScissorNV;
|
PFN_vkCmdSetExclusiveScissorNV vkCmdSetExclusiveScissorNV;
|
||||||
#endif /* defined(VK_NV_scissor_exclusive) */
|
#endif /* defined(VK_NV_scissor_exclusive) */
|
||||||
|
@ -671,9 +847,94 @@ struct VolkDeviceTable
|
||||||
PFN_vkCmdSetCoarseSampleOrderNV vkCmdSetCoarseSampleOrderNV;
|
PFN_vkCmdSetCoarseSampleOrderNV vkCmdSetCoarseSampleOrderNV;
|
||||||
PFN_vkCmdSetViewportShadingRatePaletteNV vkCmdSetViewportShadingRatePaletteNV;
|
PFN_vkCmdSetViewportShadingRatePaletteNV vkCmdSetViewportShadingRatePaletteNV;
|
||||||
#endif /* defined(VK_NV_shading_rate_image) */
|
#endif /* defined(VK_NV_shading_rate_image) */
|
||||||
|
#if defined(VK_QCOM_tile_properties)
|
||||||
|
PFN_vkGetDynamicRenderingTilePropertiesQCOM vkGetDynamicRenderingTilePropertiesQCOM;
|
||||||
|
PFN_vkGetFramebufferTilePropertiesQCOM vkGetFramebufferTilePropertiesQCOM;
|
||||||
|
#endif /* defined(VK_QCOM_tile_properties) */
|
||||||
|
#if defined(VK_QNX_external_memory_screen_buffer)
|
||||||
|
PFN_vkGetScreenBufferPropertiesQNX vkGetScreenBufferPropertiesQNX;
|
||||||
|
#endif /* defined(VK_QNX_external_memory_screen_buffer) */
|
||||||
|
#if defined(VK_VALVE_descriptor_set_host_mapping)
|
||||||
|
PFN_vkGetDescriptorSetHostMappingVALVE vkGetDescriptorSetHostMappingVALVE;
|
||||||
|
PFN_vkGetDescriptorSetLayoutHostMappingInfoVALVE vkGetDescriptorSetLayoutHostMappingInfoVALVE;
|
||||||
|
#endif /* defined(VK_VALVE_descriptor_set_host_mapping) */
|
||||||
|
#if (defined(VK_EXT_extended_dynamic_state)) || (defined(VK_EXT_shader_object))
|
||||||
|
PFN_vkCmdBindVertexBuffers2EXT vkCmdBindVertexBuffers2EXT;
|
||||||
|
PFN_vkCmdSetCullModeEXT vkCmdSetCullModeEXT;
|
||||||
|
PFN_vkCmdSetDepthBoundsTestEnableEXT vkCmdSetDepthBoundsTestEnableEXT;
|
||||||
|
PFN_vkCmdSetDepthCompareOpEXT vkCmdSetDepthCompareOpEXT;
|
||||||
|
PFN_vkCmdSetDepthTestEnableEXT vkCmdSetDepthTestEnableEXT;
|
||||||
|
PFN_vkCmdSetDepthWriteEnableEXT vkCmdSetDepthWriteEnableEXT;
|
||||||
|
PFN_vkCmdSetFrontFaceEXT vkCmdSetFrontFaceEXT;
|
||||||
|
PFN_vkCmdSetPrimitiveTopologyEXT vkCmdSetPrimitiveTopologyEXT;
|
||||||
|
PFN_vkCmdSetScissorWithCountEXT vkCmdSetScissorWithCountEXT;
|
||||||
|
PFN_vkCmdSetStencilOpEXT vkCmdSetStencilOpEXT;
|
||||||
|
PFN_vkCmdSetStencilTestEnableEXT vkCmdSetStencilTestEnableEXT;
|
||||||
|
PFN_vkCmdSetViewportWithCountEXT vkCmdSetViewportWithCountEXT;
|
||||||
|
#endif /* (defined(VK_EXT_extended_dynamic_state)) || (defined(VK_EXT_shader_object)) */
|
||||||
|
#if (defined(VK_EXT_extended_dynamic_state2)) || (defined(VK_EXT_shader_object))
|
||||||
|
PFN_vkCmdSetDepthBiasEnableEXT vkCmdSetDepthBiasEnableEXT;
|
||||||
|
PFN_vkCmdSetLogicOpEXT vkCmdSetLogicOpEXT;
|
||||||
|
PFN_vkCmdSetPatchControlPointsEXT vkCmdSetPatchControlPointsEXT;
|
||||||
|
PFN_vkCmdSetPrimitiveRestartEnableEXT vkCmdSetPrimitiveRestartEnableEXT;
|
||||||
|
PFN_vkCmdSetRasterizerDiscardEnableEXT vkCmdSetRasterizerDiscardEnableEXT;
|
||||||
|
#endif /* (defined(VK_EXT_extended_dynamic_state2)) || (defined(VK_EXT_shader_object)) */
|
||||||
|
#if (defined(VK_EXT_extended_dynamic_state3)) || (defined(VK_EXT_shader_object))
|
||||||
|
PFN_vkCmdSetAlphaToCoverageEnableEXT vkCmdSetAlphaToCoverageEnableEXT;
|
||||||
|
PFN_vkCmdSetAlphaToOneEnableEXT vkCmdSetAlphaToOneEnableEXT;
|
||||||
|
PFN_vkCmdSetColorBlendAdvancedEXT vkCmdSetColorBlendAdvancedEXT;
|
||||||
|
PFN_vkCmdSetColorBlendEnableEXT vkCmdSetColorBlendEnableEXT;
|
||||||
|
PFN_vkCmdSetColorBlendEquationEXT vkCmdSetColorBlendEquationEXT;
|
||||||
|
PFN_vkCmdSetColorWriteMaskEXT vkCmdSetColorWriteMaskEXT;
|
||||||
|
PFN_vkCmdSetConservativeRasterizationModeEXT vkCmdSetConservativeRasterizationModeEXT;
|
||||||
|
PFN_vkCmdSetDepthClampEnableEXT vkCmdSetDepthClampEnableEXT;
|
||||||
|
PFN_vkCmdSetDepthClipEnableEXT vkCmdSetDepthClipEnableEXT;
|
||||||
|
PFN_vkCmdSetDepthClipNegativeOneToOneEXT vkCmdSetDepthClipNegativeOneToOneEXT;
|
||||||
|
PFN_vkCmdSetExtraPrimitiveOverestimationSizeEXT vkCmdSetExtraPrimitiveOverestimationSizeEXT;
|
||||||
|
PFN_vkCmdSetLineRasterizationModeEXT vkCmdSetLineRasterizationModeEXT;
|
||||||
|
PFN_vkCmdSetLineStippleEnableEXT vkCmdSetLineStippleEnableEXT;
|
||||||
|
PFN_vkCmdSetLogicOpEnableEXT vkCmdSetLogicOpEnableEXT;
|
||||||
|
PFN_vkCmdSetPolygonModeEXT vkCmdSetPolygonModeEXT;
|
||||||
|
PFN_vkCmdSetProvokingVertexModeEXT vkCmdSetProvokingVertexModeEXT;
|
||||||
|
PFN_vkCmdSetRasterizationSamplesEXT vkCmdSetRasterizationSamplesEXT;
|
||||||
|
PFN_vkCmdSetRasterizationStreamEXT vkCmdSetRasterizationStreamEXT;
|
||||||
|
PFN_vkCmdSetSampleLocationsEnableEXT vkCmdSetSampleLocationsEnableEXT;
|
||||||
|
PFN_vkCmdSetSampleMaskEXT vkCmdSetSampleMaskEXT;
|
||||||
|
PFN_vkCmdSetTessellationDomainOriginEXT vkCmdSetTessellationDomainOriginEXT;
|
||||||
|
#endif /* (defined(VK_EXT_extended_dynamic_state3)) || (defined(VK_EXT_shader_object)) */
|
||||||
|
#if (defined(VK_EXT_extended_dynamic_state3) && defined(VK_NV_clip_space_w_scaling)) || (defined(VK_EXT_shader_object) && defined(VK_NV_clip_space_w_scaling))
|
||||||
|
PFN_vkCmdSetViewportWScalingEnableNV vkCmdSetViewportWScalingEnableNV;
|
||||||
|
#endif /* (defined(VK_EXT_extended_dynamic_state3) && defined(VK_NV_clip_space_w_scaling)) || (defined(VK_EXT_shader_object) && defined(VK_NV_clip_space_w_scaling)) */
|
||||||
|
#if (defined(VK_EXT_extended_dynamic_state3) && defined(VK_NV_viewport_swizzle)) || (defined(VK_EXT_shader_object) && defined(VK_NV_viewport_swizzle))
|
||||||
|
PFN_vkCmdSetViewportSwizzleNV vkCmdSetViewportSwizzleNV;
|
||||||
|
#endif /* (defined(VK_EXT_extended_dynamic_state3) && defined(VK_NV_viewport_swizzle)) || (defined(VK_EXT_shader_object) && defined(VK_NV_viewport_swizzle)) */
|
||||||
|
#if (defined(VK_EXT_extended_dynamic_state3) && defined(VK_NV_fragment_coverage_to_color)) || (defined(VK_EXT_shader_object) && defined(VK_NV_fragment_coverage_to_color))
|
||||||
|
PFN_vkCmdSetCoverageToColorEnableNV vkCmdSetCoverageToColorEnableNV;
|
||||||
|
PFN_vkCmdSetCoverageToColorLocationNV vkCmdSetCoverageToColorLocationNV;
|
||||||
|
#endif /* (defined(VK_EXT_extended_dynamic_state3) && defined(VK_NV_fragment_coverage_to_color)) || (defined(VK_EXT_shader_object) && defined(VK_NV_fragment_coverage_to_color)) */
|
||||||
|
#if (defined(VK_EXT_extended_dynamic_state3) && defined(VK_NV_framebuffer_mixed_samples)) || (defined(VK_EXT_shader_object) && defined(VK_NV_framebuffer_mixed_samples))
|
||||||
|
PFN_vkCmdSetCoverageModulationModeNV vkCmdSetCoverageModulationModeNV;
|
||||||
|
PFN_vkCmdSetCoverageModulationTableEnableNV vkCmdSetCoverageModulationTableEnableNV;
|
||||||
|
PFN_vkCmdSetCoverageModulationTableNV vkCmdSetCoverageModulationTableNV;
|
||||||
|
#endif /* (defined(VK_EXT_extended_dynamic_state3) && defined(VK_NV_framebuffer_mixed_samples)) || (defined(VK_EXT_shader_object) && defined(VK_NV_framebuffer_mixed_samples)) */
|
||||||
|
#if (defined(VK_EXT_extended_dynamic_state3) && defined(VK_NV_shading_rate_image)) || (defined(VK_EXT_shader_object) && defined(VK_NV_shading_rate_image))
|
||||||
|
PFN_vkCmdSetShadingRateImageEnableNV vkCmdSetShadingRateImageEnableNV;
|
||||||
|
#endif /* (defined(VK_EXT_extended_dynamic_state3) && defined(VK_NV_shading_rate_image)) || (defined(VK_EXT_shader_object) && defined(VK_NV_shading_rate_image)) */
|
||||||
|
#if (defined(VK_EXT_extended_dynamic_state3) && defined(VK_NV_representative_fragment_test)) || (defined(VK_EXT_shader_object) && defined(VK_NV_representative_fragment_test))
|
||||||
|
PFN_vkCmdSetRepresentativeFragmentTestEnableNV vkCmdSetRepresentativeFragmentTestEnableNV;
|
||||||
|
#endif /* (defined(VK_EXT_extended_dynamic_state3) && defined(VK_NV_representative_fragment_test)) || (defined(VK_EXT_shader_object) && defined(VK_NV_representative_fragment_test)) */
|
||||||
|
#if (defined(VK_EXT_extended_dynamic_state3) && defined(VK_NV_coverage_reduction_mode)) || (defined(VK_EXT_shader_object) && defined(VK_NV_coverage_reduction_mode))
|
||||||
|
PFN_vkCmdSetCoverageReductionModeNV vkCmdSetCoverageReductionModeNV;
|
||||||
|
#endif /* (defined(VK_EXT_extended_dynamic_state3) && defined(VK_NV_coverage_reduction_mode)) || (defined(VK_EXT_shader_object) && defined(VK_NV_coverage_reduction_mode)) */
|
||||||
#if (defined(VK_EXT_full_screen_exclusive) && defined(VK_KHR_device_group)) || (defined(VK_EXT_full_screen_exclusive) && defined(VK_VERSION_1_1))
|
#if (defined(VK_EXT_full_screen_exclusive) && defined(VK_KHR_device_group)) || (defined(VK_EXT_full_screen_exclusive) && defined(VK_VERSION_1_1))
|
||||||
PFN_vkGetDeviceGroupSurfacePresentModes2EXT vkGetDeviceGroupSurfacePresentModes2EXT;
|
PFN_vkGetDeviceGroupSurfacePresentModes2EXT vkGetDeviceGroupSurfacePresentModes2EXT;
|
||||||
#endif /* (defined(VK_EXT_full_screen_exclusive) && defined(VK_KHR_device_group)) || (defined(VK_EXT_full_screen_exclusive) && defined(VK_VERSION_1_1)) */
|
#endif /* (defined(VK_EXT_full_screen_exclusive) && defined(VK_KHR_device_group)) || (defined(VK_EXT_full_screen_exclusive) && defined(VK_VERSION_1_1)) */
|
||||||
|
#if (defined(VK_EXT_host_image_copy)) || (defined(VK_EXT_image_compression_control))
|
||||||
|
PFN_vkGetImageSubresourceLayout2EXT vkGetImageSubresourceLayout2EXT;
|
||||||
|
#endif /* (defined(VK_EXT_host_image_copy)) || (defined(VK_EXT_image_compression_control)) */
|
||||||
|
#if (defined(VK_EXT_shader_object)) || (defined(VK_EXT_vertex_input_dynamic_state))
|
||||||
|
PFN_vkCmdSetVertexInputEXT vkCmdSetVertexInputEXT;
|
||||||
|
#endif /* (defined(VK_EXT_shader_object)) || (defined(VK_EXT_vertex_input_dynamic_state)) */
|
||||||
#if (defined(VK_KHR_descriptor_update_template) && defined(VK_KHR_push_descriptor)) || (defined(VK_KHR_push_descriptor) && defined(VK_VERSION_1_1)) || (defined(VK_KHR_push_descriptor) && defined(VK_KHR_descriptor_update_template))
|
#if (defined(VK_KHR_descriptor_update_template) && defined(VK_KHR_push_descriptor)) || (defined(VK_KHR_push_descriptor) && defined(VK_VERSION_1_1)) || (defined(VK_KHR_push_descriptor) && defined(VK_KHR_descriptor_update_template))
|
||||||
PFN_vkCmdPushDescriptorSetWithTemplateKHR vkCmdPushDescriptorSetWithTemplateKHR;
|
PFN_vkCmdPushDescriptorSetWithTemplateKHR vkCmdPushDescriptorSetWithTemplateKHR;
|
||||||
#endif /* (defined(VK_KHR_descriptor_update_template) && defined(VK_KHR_push_descriptor)) || (defined(VK_KHR_push_descriptor) && defined(VK_VERSION_1_1)) || (defined(VK_KHR_push_descriptor) && defined(VK_KHR_descriptor_update_template)) */
|
#endif /* (defined(VK_KHR_descriptor_update_template) && defined(VK_KHR_push_descriptor)) || (defined(VK_KHR_push_descriptor) && defined(VK_VERSION_1_1)) || (defined(VK_KHR_push_descriptor) && defined(VK_KHR_descriptor_update_template)) */
|
||||||
|
@ -872,6 +1133,54 @@ extern PFN_vkResetQueryPool vkResetQueryPool;
|
||||||
extern PFN_vkSignalSemaphore vkSignalSemaphore;
|
extern PFN_vkSignalSemaphore vkSignalSemaphore;
|
||||||
extern PFN_vkWaitSemaphores vkWaitSemaphores;
|
extern PFN_vkWaitSemaphores vkWaitSemaphores;
|
||||||
#endif /* defined(VK_VERSION_1_2) */
|
#endif /* defined(VK_VERSION_1_2) */
|
||||||
|
#if defined(VK_VERSION_1_3)
|
||||||
|
extern PFN_vkCmdBeginRendering vkCmdBeginRendering;
|
||||||
|
extern PFN_vkCmdBindVertexBuffers2 vkCmdBindVertexBuffers2;
|
||||||
|
extern PFN_vkCmdBlitImage2 vkCmdBlitImage2;
|
||||||
|
extern PFN_vkCmdCopyBuffer2 vkCmdCopyBuffer2;
|
||||||
|
extern PFN_vkCmdCopyBufferToImage2 vkCmdCopyBufferToImage2;
|
||||||
|
extern PFN_vkCmdCopyImage2 vkCmdCopyImage2;
|
||||||
|
extern PFN_vkCmdCopyImageToBuffer2 vkCmdCopyImageToBuffer2;
|
||||||
|
extern PFN_vkCmdEndRendering vkCmdEndRendering;
|
||||||
|
extern PFN_vkCmdPipelineBarrier2 vkCmdPipelineBarrier2;
|
||||||
|
extern PFN_vkCmdResetEvent2 vkCmdResetEvent2;
|
||||||
|
extern PFN_vkCmdResolveImage2 vkCmdResolveImage2;
|
||||||
|
extern PFN_vkCmdSetCullMode vkCmdSetCullMode;
|
||||||
|
extern PFN_vkCmdSetDepthBiasEnable vkCmdSetDepthBiasEnable;
|
||||||
|
extern PFN_vkCmdSetDepthBoundsTestEnable vkCmdSetDepthBoundsTestEnable;
|
||||||
|
extern PFN_vkCmdSetDepthCompareOp vkCmdSetDepthCompareOp;
|
||||||
|
extern PFN_vkCmdSetDepthTestEnable vkCmdSetDepthTestEnable;
|
||||||
|
extern PFN_vkCmdSetDepthWriteEnable vkCmdSetDepthWriteEnable;
|
||||||
|
extern PFN_vkCmdSetEvent2 vkCmdSetEvent2;
|
||||||
|
extern PFN_vkCmdSetFrontFace vkCmdSetFrontFace;
|
||||||
|
extern PFN_vkCmdSetPrimitiveRestartEnable vkCmdSetPrimitiveRestartEnable;
|
||||||
|
extern PFN_vkCmdSetPrimitiveTopology vkCmdSetPrimitiveTopology;
|
||||||
|
extern PFN_vkCmdSetRasterizerDiscardEnable vkCmdSetRasterizerDiscardEnable;
|
||||||
|
extern PFN_vkCmdSetScissorWithCount vkCmdSetScissorWithCount;
|
||||||
|
extern PFN_vkCmdSetStencilOp vkCmdSetStencilOp;
|
||||||
|
extern PFN_vkCmdSetStencilTestEnable vkCmdSetStencilTestEnable;
|
||||||
|
extern PFN_vkCmdSetViewportWithCount vkCmdSetViewportWithCount;
|
||||||
|
extern PFN_vkCmdWaitEvents2 vkCmdWaitEvents2;
|
||||||
|
extern PFN_vkCmdWriteTimestamp2 vkCmdWriteTimestamp2;
|
||||||
|
extern PFN_vkCreatePrivateDataSlot vkCreatePrivateDataSlot;
|
||||||
|
extern PFN_vkDestroyPrivateDataSlot vkDestroyPrivateDataSlot;
|
||||||
|
extern PFN_vkGetDeviceBufferMemoryRequirements vkGetDeviceBufferMemoryRequirements;
|
||||||
|
extern PFN_vkGetDeviceImageMemoryRequirements vkGetDeviceImageMemoryRequirements;
|
||||||
|
extern PFN_vkGetDeviceImageSparseMemoryRequirements vkGetDeviceImageSparseMemoryRequirements;
|
||||||
|
extern PFN_vkGetPhysicalDeviceToolProperties vkGetPhysicalDeviceToolProperties;
|
||||||
|
extern PFN_vkGetPrivateData vkGetPrivateData;
|
||||||
|
extern PFN_vkQueueSubmit2 vkQueueSubmit2;
|
||||||
|
extern PFN_vkSetPrivateData vkSetPrivateData;
|
||||||
|
#endif /* defined(VK_VERSION_1_3) */
|
||||||
|
#if defined(VK_AMDX_shader_enqueue)
|
||||||
|
extern PFN_vkCmdDispatchGraphAMDX vkCmdDispatchGraphAMDX;
|
||||||
|
extern PFN_vkCmdDispatchGraphIndirectAMDX vkCmdDispatchGraphIndirectAMDX;
|
||||||
|
extern PFN_vkCmdDispatchGraphIndirectCountAMDX vkCmdDispatchGraphIndirectCountAMDX;
|
||||||
|
extern PFN_vkCmdInitializeGraphScratchMemoryAMDX vkCmdInitializeGraphScratchMemoryAMDX;
|
||||||
|
extern PFN_vkCreateExecutionGraphPipelinesAMDX vkCreateExecutionGraphPipelinesAMDX;
|
||||||
|
extern PFN_vkGetExecutionGraphPipelineNodeIndexAMDX vkGetExecutionGraphPipelineNodeIndexAMDX;
|
||||||
|
extern PFN_vkGetExecutionGraphPipelineScratchSizeAMDX vkGetExecutionGraphPipelineScratchSizeAMDX;
|
||||||
|
#endif /* defined(VK_AMDX_shader_enqueue) */
|
||||||
#if defined(VK_AMD_buffer_marker)
|
#if defined(VK_AMD_buffer_marker)
|
||||||
extern PFN_vkCmdWriteBufferMarkerAMD vkCmdWriteBufferMarkerAMD;
|
extern PFN_vkCmdWriteBufferMarkerAMD vkCmdWriteBufferMarkerAMD;
|
||||||
#endif /* defined(VK_AMD_buffer_marker) */
|
#endif /* defined(VK_AMD_buffer_marker) */
|
||||||
|
@ -897,6 +1206,9 @@ extern PFN_vkGetDrmDisplayEXT vkGetDrmDisplayEXT;
|
||||||
extern PFN_vkAcquireXlibDisplayEXT vkAcquireXlibDisplayEXT;
|
extern PFN_vkAcquireXlibDisplayEXT vkAcquireXlibDisplayEXT;
|
||||||
extern PFN_vkGetRandROutputDisplayEXT vkGetRandROutputDisplayEXT;
|
extern PFN_vkGetRandROutputDisplayEXT vkGetRandROutputDisplayEXT;
|
||||||
#endif /* defined(VK_EXT_acquire_xlib_display) */
|
#endif /* defined(VK_EXT_acquire_xlib_display) */
|
||||||
|
#if defined(VK_EXT_attachment_feedback_loop_dynamic_state)
|
||||||
|
extern PFN_vkCmdSetAttachmentFeedbackLoopEnableEXT vkCmdSetAttachmentFeedbackLoopEnableEXT;
|
||||||
|
#endif /* defined(VK_EXT_attachment_feedback_loop_dynamic_state) */
|
||||||
#if defined(VK_EXT_buffer_device_address)
|
#if defined(VK_EXT_buffer_device_address)
|
||||||
extern PFN_vkGetBufferDeviceAddressEXT vkGetBufferDeviceAddressEXT;
|
extern PFN_vkGetBufferDeviceAddressEXT vkGetBufferDeviceAddressEXT;
|
||||||
#endif /* defined(VK_EXT_buffer_device_address) */
|
#endif /* defined(VK_EXT_buffer_device_address) */
|
||||||
|
@ -936,6 +1248,27 @@ extern PFN_vkSetDebugUtilsObjectNameEXT vkSetDebugUtilsObjectNameEXT;
|
||||||
extern PFN_vkSetDebugUtilsObjectTagEXT vkSetDebugUtilsObjectTagEXT;
|
extern PFN_vkSetDebugUtilsObjectTagEXT vkSetDebugUtilsObjectTagEXT;
|
||||||
extern PFN_vkSubmitDebugUtilsMessageEXT vkSubmitDebugUtilsMessageEXT;
|
extern PFN_vkSubmitDebugUtilsMessageEXT vkSubmitDebugUtilsMessageEXT;
|
||||||
#endif /* defined(VK_EXT_debug_utils) */
|
#endif /* defined(VK_EXT_debug_utils) */
|
||||||
|
#if defined(VK_EXT_depth_bias_control)
|
||||||
|
extern PFN_vkCmdSetDepthBias2EXT vkCmdSetDepthBias2EXT;
|
||||||
|
#endif /* defined(VK_EXT_depth_bias_control) */
|
||||||
|
#if defined(VK_EXT_descriptor_buffer)
|
||||||
|
extern PFN_vkCmdBindDescriptorBufferEmbeddedSamplersEXT vkCmdBindDescriptorBufferEmbeddedSamplersEXT;
|
||||||
|
extern PFN_vkCmdBindDescriptorBuffersEXT vkCmdBindDescriptorBuffersEXT;
|
||||||
|
extern PFN_vkCmdSetDescriptorBufferOffsetsEXT vkCmdSetDescriptorBufferOffsetsEXT;
|
||||||
|
extern PFN_vkGetBufferOpaqueCaptureDescriptorDataEXT vkGetBufferOpaqueCaptureDescriptorDataEXT;
|
||||||
|
extern PFN_vkGetDescriptorEXT vkGetDescriptorEXT;
|
||||||
|
extern PFN_vkGetDescriptorSetLayoutBindingOffsetEXT vkGetDescriptorSetLayoutBindingOffsetEXT;
|
||||||
|
extern PFN_vkGetDescriptorSetLayoutSizeEXT vkGetDescriptorSetLayoutSizeEXT;
|
||||||
|
extern PFN_vkGetImageOpaqueCaptureDescriptorDataEXT vkGetImageOpaqueCaptureDescriptorDataEXT;
|
||||||
|
extern PFN_vkGetImageViewOpaqueCaptureDescriptorDataEXT vkGetImageViewOpaqueCaptureDescriptorDataEXT;
|
||||||
|
extern PFN_vkGetSamplerOpaqueCaptureDescriptorDataEXT vkGetSamplerOpaqueCaptureDescriptorDataEXT;
|
||||||
|
#endif /* defined(VK_EXT_descriptor_buffer) */
|
||||||
|
#if defined(VK_EXT_descriptor_buffer) && (defined(VK_KHR_acceleration_structure) || defined(VK_NV_ray_tracing))
|
||||||
|
extern PFN_vkGetAccelerationStructureOpaqueCaptureDescriptorDataEXT vkGetAccelerationStructureOpaqueCaptureDescriptorDataEXT;
|
||||||
|
#endif /* defined(VK_EXT_descriptor_buffer) && (defined(VK_KHR_acceleration_structure) || defined(VK_NV_ray_tracing)) */
|
||||||
|
#if defined(VK_EXT_device_fault)
|
||||||
|
extern PFN_vkGetDeviceFaultInfoEXT vkGetDeviceFaultInfoEXT;
|
||||||
|
#endif /* defined(VK_EXT_device_fault) */
|
||||||
#if defined(VK_EXT_direct_mode_display)
|
#if defined(VK_EXT_direct_mode_display)
|
||||||
extern PFN_vkReleaseDisplayEXT vkReleaseDisplayEXT;
|
extern PFN_vkReleaseDisplayEXT vkReleaseDisplayEXT;
|
||||||
#endif /* defined(VK_EXT_direct_mode_display) */
|
#endif /* defined(VK_EXT_direct_mode_display) */
|
||||||
|
@ -946,6 +1279,10 @@ extern PFN_vkGetPhysicalDeviceDirectFBPresentationSupportEXT vkGetPhysicalDevice
|
||||||
#if defined(VK_EXT_discard_rectangles)
|
#if defined(VK_EXT_discard_rectangles)
|
||||||
extern PFN_vkCmdSetDiscardRectangleEXT vkCmdSetDiscardRectangleEXT;
|
extern PFN_vkCmdSetDiscardRectangleEXT vkCmdSetDiscardRectangleEXT;
|
||||||
#endif /* defined(VK_EXT_discard_rectangles) */
|
#endif /* defined(VK_EXT_discard_rectangles) */
|
||||||
|
#if defined(VK_EXT_discard_rectangles) && VK_EXT_DISCARD_RECTANGLES_SPEC_VERSION >= 2
|
||||||
|
extern PFN_vkCmdSetDiscardRectangleEnableEXT vkCmdSetDiscardRectangleEnableEXT;
|
||||||
|
extern PFN_vkCmdSetDiscardRectangleModeEXT vkCmdSetDiscardRectangleModeEXT;
|
||||||
|
#endif /* defined(VK_EXT_discard_rectangles) && VK_EXT_DISCARD_RECTANGLES_SPEC_VERSION >= 2 */
|
||||||
#if defined(VK_EXT_display_control)
|
#if defined(VK_EXT_display_control)
|
||||||
extern PFN_vkDisplayPowerControlEXT vkDisplayPowerControlEXT;
|
extern PFN_vkDisplayPowerControlEXT vkDisplayPowerControlEXT;
|
||||||
extern PFN_vkGetSwapchainCounterEXT vkGetSwapchainCounterEXT;
|
extern PFN_vkGetSwapchainCounterEXT vkGetSwapchainCounterEXT;
|
||||||
|
@ -955,27 +1292,6 @@ extern PFN_vkRegisterDisplayEventEXT vkRegisterDisplayEventEXT;
|
||||||
#if defined(VK_EXT_display_surface_counter)
|
#if defined(VK_EXT_display_surface_counter)
|
||||||
extern PFN_vkGetPhysicalDeviceSurfaceCapabilities2EXT vkGetPhysicalDeviceSurfaceCapabilities2EXT;
|
extern PFN_vkGetPhysicalDeviceSurfaceCapabilities2EXT vkGetPhysicalDeviceSurfaceCapabilities2EXT;
|
||||||
#endif /* defined(VK_EXT_display_surface_counter) */
|
#endif /* defined(VK_EXT_display_surface_counter) */
|
||||||
#if defined(VK_EXT_extended_dynamic_state)
|
|
||||||
extern PFN_vkCmdBindVertexBuffers2EXT vkCmdBindVertexBuffers2EXT;
|
|
||||||
extern PFN_vkCmdSetCullModeEXT vkCmdSetCullModeEXT;
|
|
||||||
extern PFN_vkCmdSetDepthBoundsTestEnableEXT vkCmdSetDepthBoundsTestEnableEXT;
|
|
||||||
extern PFN_vkCmdSetDepthCompareOpEXT vkCmdSetDepthCompareOpEXT;
|
|
||||||
extern PFN_vkCmdSetDepthTestEnableEXT vkCmdSetDepthTestEnableEXT;
|
|
||||||
extern PFN_vkCmdSetDepthWriteEnableEXT vkCmdSetDepthWriteEnableEXT;
|
|
||||||
extern PFN_vkCmdSetFrontFaceEXT vkCmdSetFrontFaceEXT;
|
|
||||||
extern PFN_vkCmdSetPrimitiveTopologyEXT vkCmdSetPrimitiveTopologyEXT;
|
|
||||||
extern PFN_vkCmdSetScissorWithCountEXT vkCmdSetScissorWithCountEXT;
|
|
||||||
extern PFN_vkCmdSetStencilOpEXT vkCmdSetStencilOpEXT;
|
|
||||||
extern PFN_vkCmdSetStencilTestEnableEXT vkCmdSetStencilTestEnableEXT;
|
|
||||||
extern PFN_vkCmdSetViewportWithCountEXT vkCmdSetViewportWithCountEXT;
|
|
||||||
#endif /* defined(VK_EXT_extended_dynamic_state) */
|
|
||||||
#if defined(VK_EXT_extended_dynamic_state2)
|
|
||||||
extern PFN_vkCmdSetDepthBiasEnableEXT vkCmdSetDepthBiasEnableEXT;
|
|
||||||
extern PFN_vkCmdSetLogicOpEXT vkCmdSetLogicOpEXT;
|
|
||||||
extern PFN_vkCmdSetPatchControlPointsEXT vkCmdSetPatchControlPointsEXT;
|
|
||||||
extern PFN_vkCmdSetPrimitiveRestartEnableEXT vkCmdSetPrimitiveRestartEnableEXT;
|
|
||||||
extern PFN_vkCmdSetRasterizerDiscardEnableEXT vkCmdSetRasterizerDiscardEnableEXT;
|
|
||||||
#endif /* defined(VK_EXT_extended_dynamic_state2) */
|
|
||||||
#if defined(VK_EXT_external_memory_host)
|
#if defined(VK_EXT_external_memory_host)
|
||||||
extern PFN_vkGetMemoryHostPointerPropertiesEXT vkGetMemoryHostPointerPropertiesEXT;
|
extern PFN_vkGetMemoryHostPointerPropertiesEXT vkGetMemoryHostPointerPropertiesEXT;
|
||||||
#endif /* defined(VK_EXT_external_memory_host) */
|
#endif /* defined(VK_EXT_external_memory_host) */
|
||||||
|
@ -990,6 +1306,12 @@ extern PFN_vkSetHdrMetadataEXT vkSetHdrMetadataEXT;
|
||||||
#if defined(VK_EXT_headless_surface)
|
#if defined(VK_EXT_headless_surface)
|
||||||
extern PFN_vkCreateHeadlessSurfaceEXT vkCreateHeadlessSurfaceEXT;
|
extern PFN_vkCreateHeadlessSurfaceEXT vkCreateHeadlessSurfaceEXT;
|
||||||
#endif /* defined(VK_EXT_headless_surface) */
|
#endif /* defined(VK_EXT_headless_surface) */
|
||||||
|
#if defined(VK_EXT_host_image_copy)
|
||||||
|
extern PFN_vkCopyImageToImageEXT vkCopyImageToImageEXT;
|
||||||
|
extern PFN_vkCopyImageToMemoryEXT vkCopyImageToMemoryEXT;
|
||||||
|
extern PFN_vkCopyMemoryToImageEXT vkCopyMemoryToImageEXT;
|
||||||
|
extern PFN_vkTransitionImageLayoutEXT vkTransitionImageLayoutEXT;
|
||||||
|
#endif /* defined(VK_EXT_host_image_copy) */
|
||||||
#if defined(VK_EXT_host_query_reset)
|
#if defined(VK_EXT_host_query_reset)
|
||||||
extern PFN_vkResetQueryPoolEXT vkResetQueryPoolEXT;
|
extern PFN_vkResetQueryPoolEXT vkResetQueryPoolEXT;
|
||||||
#endif /* defined(VK_EXT_host_query_reset) */
|
#endif /* defined(VK_EXT_host_query_reset) */
|
||||||
|
@ -999,6 +1321,14 @@ extern PFN_vkGetImageDrmFormatModifierPropertiesEXT vkGetImageDrmFormatModifierP
|
||||||
#if defined(VK_EXT_line_rasterization)
|
#if defined(VK_EXT_line_rasterization)
|
||||||
extern PFN_vkCmdSetLineStippleEXT vkCmdSetLineStippleEXT;
|
extern PFN_vkCmdSetLineStippleEXT vkCmdSetLineStippleEXT;
|
||||||
#endif /* defined(VK_EXT_line_rasterization) */
|
#endif /* defined(VK_EXT_line_rasterization) */
|
||||||
|
#if defined(VK_EXT_mesh_shader)
|
||||||
|
extern PFN_vkCmdDrawMeshTasksEXT vkCmdDrawMeshTasksEXT;
|
||||||
|
extern PFN_vkCmdDrawMeshTasksIndirectCountEXT vkCmdDrawMeshTasksIndirectCountEXT;
|
||||||
|
extern PFN_vkCmdDrawMeshTasksIndirectEXT vkCmdDrawMeshTasksIndirectEXT;
|
||||||
|
#endif /* defined(VK_EXT_mesh_shader) */
|
||||||
|
#if defined(VK_EXT_metal_objects)
|
||||||
|
extern PFN_vkExportMetalObjectsEXT vkExportMetalObjectsEXT;
|
||||||
|
#endif /* defined(VK_EXT_metal_objects) */
|
||||||
#if defined(VK_EXT_metal_surface)
|
#if defined(VK_EXT_metal_surface)
|
||||||
extern PFN_vkCreateMetalSurfaceEXT vkCreateMetalSurfaceEXT;
|
extern PFN_vkCreateMetalSurfaceEXT vkCreateMetalSurfaceEXT;
|
||||||
#endif /* defined(VK_EXT_metal_surface) */
|
#endif /* defined(VK_EXT_metal_surface) */
|
||||||
|
@ -1006,6 +1336,28 @@ extern PFN_vkCreateMetalSurfaceEXT vkCreateMetalSurfaceEXT;
|
||||||
extern PFN_vkCmdDrawMultiEXT vkCmdDrawMultiEXT;
|
extern PFN_vkCmdDrawMultiEXT vkCmdDrawMultiEXT;
|
||||||
extern PFN_vkCmdDrawMultiIndexedEXT vkCmdDrawMultiIndexedEXT;
|
extern PFN_vkCmdDrawMultiIndexedEXT vkCmdDrawMultiIndexedEXT;
|
||||||
#endif /* defined(VK_EXT_multi_draw) */
|
#endif /* defined(VK_EXT_multi_draw) */
|
||||||
|
#if defined(VK_EXT_opacity_micromap)
|
||||||
|
extern PFN_vkBuildMicromapsEXT vkBuildMicromapsEXT;
|
||||||
|
extern PFN_vkCmdBuildMicromapsEXT vkCmdBuildMicromapsEXT;
|
||||||
|
extern PFN_vkCmdCopyMemoryToMicromapEXT vkCmdCopyMemoryToMicromapEXT;
|
||||||
|
extern PFN_vkCmdCopyMicromapEXT vkCmdCopyMicromapEXT;
|
||||||
|
extern PFN_vkCmdCopyMicromapToMemoryEXT vkCmdCopyMicromapToMemoryEXT;
|
||||||
|
extern PFN_vkCmdWriteMicromapsPropertiesEXT vkCmdWriteMicromapsPropertiesEXT;
|
||||||
|
extern PFN_vkCopyMemoryToMicromapEXT vkCopyMemoryToMicromapEXT;
|
||||||
|
extern PFN_vkCopyMicromapEXT vkCopyMicromapEXT;
|
||||||
|
extern PFN_vkCopyMicromapToMemoryEXT vkCopyMicromapToMemoryEXT;
|
||||||
|
extern PFN_vkCreateMicromapEXT vkCreateMicromapEXT;
|
||||||
|
extern PFN_vkDestroyMicromapEXT vkDestroyMicromapEXT;
|
||||||
|
extern PFN_vkGetDeviceMicromapCompatibilityEXT vkGetDeviceMicromapCompatibilityEXT;
|
||||||
|
extern PFN_vkGetMicromapBuildSizesEXT vkGetMicromapBuildSizesEXT;
|
||||||
|
extern PFN_vkWriteMicromapsPropertiesEXT vkWriteMicromapsPropertiesEXT;
|
||||||
|
#endif /* defined(VK_EXT_opacity_micromap) */
|
||||||
|
#if defined(VK_EXT_pageable_device_local_memory)
|
||||||
|
extern PFN_vkSetDeviceMemoryPriorityEXT vkSetDeviceMemoryPriorityEXT;
|
||||||
|
#endif /* defined(VK_EXT_pageable_device_local_memory) */
|
||||||
|
#if defined(VK_EXT_pipeline_properties)
|
||||||
|
extern PFN_vkGetPipelinePropertiesEXT vkGetPipelinePropertiesEXT;
|
||||||
|
#endif /* defined(VK_EXT_pipeline_properties) */
|
||||||
#if defined(VK_EXT_private_data)
|
#if defined(VK_EXT_private_data)
|
||||||
extern PFN_vkCreatePrivateDataSlotEXT vkCreatePrivateDataSlotEXT;
|
extern PFN_vkCreatePrivateDataSlotEXT vkCreatePrivateDataSlotEXT;
|
||||||
extern PFN_vkDestroyPrivateDataSlotEXT vkDestroyPrivateDataSlotEXT;
|
extern PFN_vkDestroyPrivateDataSlotEXT vkDestroyPrivateDataSlotEXT;
|
||||||
|
@ -1016,6 +1368,19 @@ extern PFN_vkSetPrivateDataEXT vkSetPrivateDataEXT;
|
||||||
extern PFN_vkCmdSetSampleLocationsEXT vkCmdSetSampleLocationsEXT;
|
extern PFN_vkCmdSetSampleLocationsEXT vkCmdSetSampleLocationsEXT;
|
||||||
extern PFN_vkGetPhysicalDeviceMultisamplePropertiesEXT vkGetPhysicalDeviceMultisamplePropertiesEXT;
|
extern PFN_vkGetPhysicalDeviceMultisamplePropertiesEXT vkGetPhysicalDeviceMultisamplePropertiesEXT;
|
||||||
#endif /* defined(VK_EXT_sample_locations) */
|
#endif /* defined(VK_EXT_sample_locations) */
|
||||||
|
#if defined(VK_EXT_shader_module_identifier)
|
||||||
|
extern PFN_vkGetShaderModuleCreateInfoIdentifierEXT vkGetShaderModuleCreateInfoIdentifierEXT;
|
||||||
|
extern PFN_vkGetShaderModuleIdentifierEXT vkGetShaderModuleIdentifierEXT;
|
||||||
|
#endif /* defined(VK_EXT_shader_module_identifier) */
|
||||||
|
#if defined(VK_EXT_shader_object)
|
||||||
|
extern PFN_vkCmdBindShadersEXT vkCmdBindShadersEXT;
|
||||||
|
extern PFN_vkCreateShadersEXT vkCreateShadersEXT;
|
||||||
|
extern PFN_vkDestroyShaderEXT vkDestroyShaderEXT;
|
||||||
|
extern PFN_vkGetShaderBinaryDataEXT vkGetShaderBinaryDataEXT;
|
||||||
|
#endif /* defined(VK_EXT_shader_object) */
|
||||||
|
#if defined(VK_EXT_swapchain_maintenance1)
|
||||||
|
extern PFN_vkReleaseSwapchainImagesEXT vkReleaseSwapchainImagesEXT;
|
||||||
|
#endif /* defined(VK_EXT_swapchain_maintenance1) */
|
||||||
#if defined(VK_EXT_tooling_info)
|
#if defined(VK_EXT_tooling_info)
|
||||||
extern PFN_vkGetPhysicalDeviceToolPropertiesEXT vkGetPhysicalDeviceToolPropertiesEXT;
|
extern PFN_vkGetPhysicalDeviceToolPropertiesEXT vkGetPhysicalDeviceToolPropertiesEXT;
|
||||||
#endif /* defined(VK_EXT_tooling_info) */
|
#endif /* defined(VK_EXT_tooling_info) */
|
||||||
|
@ -1033,9 +1398,13 @@ extern PFN_vkDestroyValidationCacheEXT vkDestroyValidationCacheEXT;
|
||||||
extern PFN_vkGetValidationCacheDataEXT vkGetValidationCacheDataEXT;
|
extern PFN_vkGetValidationCacheDataEXT vkGetValidationCacheDataEXT;
|
||||||
extern PFN_vkMergeValidationCachesEXT vkMergeValidationCachesEXT;
|
extern PFN_vkMergeValidationCachesEXT vkMergeValidationCachesEXT;
|
||||||
#endif /* defined(VK_EXT_validation_cache) */
|
#endif /* defined(VK_EXT_validation_cache) */
|
||||||
#if defined(VK_EXT_vertex_input_dynamic_state)
|
#if defined(VK_FUCHSIA_buffer_collection)
|
||||||
extern PFN_vkCmdSetVertexInputEXT vkCmdSetVertexInputEXT;
|
extern PFN_vkCreateBufferCollectionFUCHSIA vkCreateBufferCollectionFUCHSIA;
|
||||||
#endif /* defined(VK_EXT_vertex_input_dynamic_state) */
|
extern PFN_vkDestroyBufferCollectionFUCHSIA vkDestroyBufferCollectionFUCHSIA;
|
||||||
|
extern PFN_vkGetBufferCollectionPropertiesFUCHSIA vkGetBufferCollectionPropertiesFUCHSIA;
|
||||||
|
extern PFN_vkSetBufferCollectionBufferConstraintsFUCHSIA vkSetBufferCollectionBufferConstraintsFUCHSIA;
|
||||||
|
extern PFN_vkSetBufferCollectionImageConstraintsFUCHSIA vkSetBufferCollectionImageConstraintsFUCHSIA;
|
||||||
|
#endif /* defined(VK_FUCHSIA_buffer_collection) */
|
||||||
#if defined(VK_FUCHSIA_external_memory)
|
#if defined(VK_FUCHSIA_external_memory)
|
||||||
extern PFN_vkGetMemoryZirconHandleFUCHSIA vkGetMemoryZirconHandleFUCHSIA;
|
extern PFN_vkGetMemoryZirconHandleFUCHSIA vkGetMemoryZirconHandleFUCHSIA;
|
||||||
extern PFN_vkGetMemoryZirconHandlePropertiesFUCHSIA vkGetMemoryZirconHandlePropertiesFUCHSIA;
|
extern PFN_vkGetMemoryZirconHandlePropertiesFUCHSIA vkGetMemoryZirconHandlePropertiesFUCHSIA;
|
||||||
|
@ -1054,6 +1423,10 @@ extern PFN_vkCreateStreamDescriptorSurfaceGGP vkCreateStreamDescriptorSurfaceGGP
|
||||||
extern PFN_vkGetPastPresentationTimingGOOGLE vkGetPastPresentationTimingGOOGLE;
|
extern PFN_vkGetPastPresentationTimingGOOGLE vkGetPastPresentationTimingGOOGLE;
|
||||||
extern PFN_vkGetRefreshCycleDurationGOOGLE vkGetRefreshCycleDurationGOOGLE;
|
extern PFN_vkGetRefreshCycleDurationGOOGLE vkGetRefreshCycleDurationGOOGLE;
|
||||||
#endif /* defined(VK_GOOGLE_display_timing) */
|
#endif /* defined(VK_GOOGLE_display_timing) */
|
||||||
|
#if defined(VK_HUAWEI_cluster_culling_shader)
|
||||||
|
extern PFN_vkCmdDrawClusterHUAWEI vkCmdDrawClusterHUAWEI;
|
||||||
|
extern PFN_vkCmdDrawClusterIndirectHUAWEI vkCmdDrawClusterIndirectHUAWEI;
|
||||||
|
#endif /* defined(VK_HUAWEI_cluster_culling_shader) */
|
||||||
#if defined(VK_HUAWEI_invocation_mask)
|
#if defined(VK_HUAWEI_invocation_mask)
|
||||||
extern PFN_vkCmdBindInvocationMaskHUAWEI vkCmdBindInvocationMaskHUAWEI;
|
extern PFN_vkCmdBindInvocationMaskHUAWEI vkCmdBindInvocationMaskHUAWEI;
|
||||||
#endif /* defined(VK_HUAWEI_invocation_mask) */
|
#endif /* defined(VK_HUAWEI_invocation_mask) */
|
||||||
|
@ -1102,6 +1475,9 @@ extern PFN_vkGetBufferDeviceAddressKHR vkGetBufferDeviceAddressKHR;
|
||||||
extern PFN_vkGetBufferOpaqueCaptureAddressKHR vkGetBufferOpaqueCaptureAddressKHR;
|
extern PFN_vkGetBufferOpaqueCaptureAddressKHR vkGetBufferOpaqueCaptureAddressKHR;
|
||||||
extern PFN_vkGetDeviceMemoryOpaqueCaptureAddressKHR vkGetDeviceMemoryOpaqueCaptureAddressKHR;
|
extern PFN_vkGetDeviceMemoryOpaqueCaptureAddressKHR vkGetDeviceMemoryOpaqueCaptureAddressKHR;
|
||||||
#endif /* defined(VK_KHR_buffer_device_address) */
|
#endif /* defined(VK_KHR_buffer_device_address) */
|
||||||
|
#if defined(VK_KHR_cooperative_matrix)
|
||||||
|
extern PFN_vkGetPhysicalDeviceCooperativeMatrixPropertiesKHR vkGetPhysicalDeviceCooperativeMatrixPropertiesKHR;
|
||||||
|
#endif /* defined(VK_KHR_cooperative_matrix) */
|
||||||
#if defined(VK_KHR_copy_commands2)
|
#if defined(VK_KHR_copy_commands2)
|
||||||
extern PFN_vkCmdBlitImage2KHR vkCmdBlitImage2KHR;
|
extern PFN_vkCmdBlitImage2KHR vkCmdBlitImage2KHR;
|
||||||
extern PFN_vkCmdCopyBuffer2KHR vkCmdCopyBuffer2KHR;
|
extern PFN_vkCmdCopyBuffer2KHR vkCmdCopyBuffer2KHR;
|
||||||
|
@ -1152,6 +1528,10 @@ extern PFN_vkCreateSharedSwapchainsKHR vkCreateSharedSwapchainsKHR;
|
||||||
extern PFN_vkCmdDrawIndexedIndirectCountKHR vkCmdDrawIndexedIndirectCountKHR;
|
extern PFN_vkCmdDrawIndexedIndirectCountKHR vkCmdDrawIndexedIndirectCountKHR;
|
||||||
extern PFN_vkCmdDrawIndirectCountKHR vkCmdDrawIndirectCountKHR;
|
extern PFN_vkCmdDrawIndirectCountKHR vkCmdDrawIndirectCountKHR;
|
||||||
#endif /* defined(VK_KHR_draw_indirect_count) */
|
#endif /* defined(VK_KHR_draw_indirect_count) */
|
||||||
|
#if defined(VK_KHR_dynamic_rendering)
|
||||||
|
extern PFN_vkCmdBeginRenderingKHR vkCmdBeginRenderingKHR;
|
||||||
|
extern PFN_vkCmdEndRenderingKHR vkCmdEndRenderingKHR;
|
||||||
|
#endif /* defined(VK_KHR_dynamic_rendering) */
|
||||||
#if defined(VK_KHR_external_fence_capabilities)
|
#if defined(VK_KHR_external_fence_capabilities)
|
||||||
extern PFN_vkGetPhysicalDeviceExternalFencePropertiesKHR vkGetPhysicalDeviceExternalFencePropertiesKHR;
|
extern PFN_vkGetPhysicalDeviceExternalFencePropertiesKHR vkGetPhysicalDeviceExternalFencePropertiesKHR;
|
||||||
#endif /* defined(VK_KHR_external_fence_capabilities) */
|
#endif /* defined(VK_KHR_external_fence_capabilities) */
|
||||||
|
@ -1219,6 +1599,21 @@ extern PFN_vkTrimCommandPoolKHR vkTrimCommandPoolKHR;
|
||||||
#if defined(VK_KHR_maintenance3)
|
#if defined(VK_KHR_maintenance3)
|
||||||
extern PFN_vkGetDescriptorSetLayoutSupportKHR vkGetDescriptorSetLayoutSupportKHR;
|
extern PFN_vkGetDescriptorSetLayoutSupportKHR vkGetDescriptorSetLayoutSupportKHR;
|
||||||
#endif /* defined(VK_KHR_maintenance3) */
|
#endif /* defined(VK_KHR_maintenance3) */
|
||||||
|
#if defined(VK_KHR_maintenance4)
|
||||||
|
extern PFN_vkGetDeviceBufferMemoryRequirementsKHR vkGetDeviceBufferMemoryRequirementsKHR;
|
||||||
|
extern PFN_vkGetDeviceImageMemoryRequirementsKHR vkGetDeviceImageMemoryRequirementsKHR;
|
||||||
|
extern PFN_vkGetDeviceImageSparseMemoryRequirementsKHR vkGetDeviceImageSparseMemoryRequirementsKHR;
|
||||||
|
#endif /* defined(VK_KHR_maintenance4) */
|
||||||
|
#if defined(VK_KHR_maintenance5)
|
||||||
|
extern PFN_vkCmdBindIndexBuffer2KHR vkCmdBindIndexBuffer2KHR;
|
||||||
|
extern PFN_vkGetDeviceImageSubresourceLayoutKHR vkGetDeviceImageSubresourceLayoutKHR;
|
||||||
|
extern PFN_vkGetImageSubresourceLayout2KHR vkGetImageSubresourceLayout2KHR;
|
||||||
|
extern PFN_vkGetRenderingAreaGranularityKHR vkGetRenderingAreaGranularityKHR;
|
||||||
|
#endif /* defined(VK_KHR_maintenance5) */
|
||||||
|
#if defined(VK_KHR_map_memory2)
|
||||||
|
extern PFN_vkMapMemory2KHR vkMapMemory2KHR;
|
||||||
|
extern PFN_vkUnmapMemory2KHR vkUnmapMemory2KHR;
|
||||||
|
#endif /* defined(VK_KHR_map_memory2) */
|
||||||
#if defined(VK_KHR_performance_query)
|
#if defined(VK_KHR_performance_query)
|
||||||
extern PFN_vkAcquireProfilingLockKHR vkAcquireProfilingLockKHR;
|
extern PFN_vkAcquireProfilingLockKHR vkAcquireProfilingLockKHR;
|
||||||
extern PFN_vkEnumeratePhysicalDeviceQueueFamilyPerformanceQueryCountersKHR vkEnumeratePhysicalDeviceQueueFamilyPerformanceQueryCountersKHR;
|
extern PFN_vkEnumeratePhysicalDeviceQueueFamilyPerformanceQueryCountersKHR vkEnumeratePhysicalDeviceQueueFamilyPerformanceQueryCountersKHR;
|
||||||
|
@ -1236,6 +1631,9 @@ extern PFN_vkWaitForPresentKHR vkWaitForPresentKHR;
|
||||||
#if defined(VK_KHR_push_descriptor)
|
#if defined(VK_KHR_push_descriptor)
|
||||||
extern PFN_vkCmdPushDescriptorSetKHR vkCmdPushDescriptorSetKHR;
|
extern PFN_vkCmdPushDescriptorSetKHR vkCmdPushDescriptorSetKHR;
|
||||||
#endif /* defined(VK_KHR_push_descriptor) */
|
#endif /* defined(VK_KHR_push_descriptor) */
|
||||||
|
#if defined(VK_KHR_ray_tracing_maintenance1) && defined(VK_KHR_ray_tracing_pipeline)
|
||||||
|
extern PFN_vkCmdTraceRaysIndirect2KHR vkCmdTraceRaysIndirect2KHR;
|
||||||
|
#endif /* defined(VK_KHR_ray_tracing_maintenance1) && defined(VK_KHR_ray_tracing_pipeline) */
|
||||||
#if defined(VK_KHR_ray_tracing_pipeline)
|
#if defined(VK_KHR_ray_tracing_pipeline)
|
||||||
extern PFN_vkCmdSetRayTracingPipelineStackSizeKHR vkCmdSetRayTracingPipelineStackSizeKHR;
|
extern PFN_vkCmdSetRayTracingPipelineStackSizeKHR vkCmdSetRayTracingPipelineStackSizeKHR;
|
||||||
extern PFN_vkCmdTraceRaysIndirectKHR vkCmdTraceRaysIndirectKHR;
|
extern PFN_vkCmdTraceRaysIndirectKHR vkCmdTraceRaysIndirectKHR;
|
||||||
|
@ -1290,6 +1688,8 @@ extern PFN_vkCmdDecodeVideoKHR vkCmdDecodeVideoKHR;
|
||||||
#endif /* defined(VK_KHR_video_decode_queue) */
|
#endif /* defined(VK_KHR_video_decode_queue) */
|
||||||
#if defined(VK_KHR_video_encode_queue)
|
#if defined(VK_KHR_video_encode_queue)
|
||||||
extern PFN_vkCmdEncodeVideoKHR vkCmdEncodeVideoKHR;
|
extern PFN_vkCmdEncodeVideoKHR vkCmdEncodeVideoKHR;
|
||||||
|
extern PFN_vkGetEncodedVideoSessionParametersKHR vkGetEncodedVideoSessionParametersKHR;
|
||||||
|
extern PFN_vkGetPhysicalDeviceVideoEncodeQualityLevelPropertiesKHR vkGetPhysicalDeviceVideoEncodeQualityLevelPropertiesKHR;
|
||||||
#endif /* defined(VK_KHR_video_encode_queue) */
|
#endif /* defined(VK_KHR_video_encode_queue) */
|
||||||
#if defined(VK_KHR_video_queue)
|
#if defined(VK_KHR_video_queue)
|
||||||
extern PFN_vkBindVideoSessionMemoryKHR vkBindVideoSessionMemoryKHR;
|
extern PFN_vkBindVideoSessionMemoryKHR vkBindVideoSessionMemoryKHR;
|
||||||
|
@ -1351,9 +1751,21 @@ extern PFN_vkCmdSetViewportWScalingNV vkCmdSetViewportWScalingNV;
|
||||||
#if defined(VK_NV_cooperative_matrix)
|
#if defined(VK_NV_cooperative_matrix)
|
||||||
extern PFN_vkGetPhysicalDeviceCooperativeMatrixPropertiesNV vkGetPhysicalDeviceCooperativeMatrixPropertiesNV;
|
extern PFN_vkGetPhysicalDeviceCooperativeMatrixPropertiesNV vkGetPhysicalDeviceCooperativeMatrixPropertiesNV;
|
||||||
#endif /* defined(VK_NV_cooperative_matrix) */
|
#endif /* defined(VK_NV_cooperative_matrix) */
|
||||||
|
#if defined(VK_NV_copy_memory_indirect)
|
||||||
|
extern PFN_vkCmdCopyMemoryIndirectNV vkCmdCopyMemoryIndirectNV;
|
||||||
|
extern PFN_vkCmdCopyMemoryToImageIndirectNV vkCmdCopyMemoryToImageIndirectNV;
|
||||||
|
#endif /* defined(VK_NV_copy_memory_indirect) */
|
||||||
#if defined(VK_NV_coverage_reduction_mode)
|
#if defined(VK_NV_coverage_reduction_mode)
|
||||||
extern PFN_vkGetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNV vkGetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNV;
|
extern PFN_vkGetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNV vkGetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNV;
|
||||||
#endif /* defined(VK_NV_coverage_reduction_mode) */
|
#endif /* defined(VK_NV_coverage_reduction_mode) */
|
||||||
|
#if defined(VK_NV_cuda_kernel_launch)
|
||||||
|
extern PFN_vkCmdCudaLaunchKernelNV vkCmdCudaLaunchKernelNV;
|
||||||
|
extern PFN_vkCreateCudaFunctionNV vkCreateCudaFunctionNV;
|
||||||
|
extern PFN_vkCreateCudaModuleNV vkCreateCudaModuleNV;
|
||||||
|
extern PFN_vkDestroyCudaFunctionNV vkDestroyCudaFunctionNV;
|
||||||
|
extern PFN_vkDestroyCudaModuleNV vkDestroyCudaModuleNV;
|
||||||
|
extern PFN_vkGetCudaModuleCacheNV vkGetCudaModuleCacheNV;
|
||||||
|
#endif /* defined(VK_NV_cuda_kernel_launch) */
|
||||||
#if defined(VK_NV_device_diagnostic_checkpoints)
|
#if defined(VK_NV_device_diagnostic_checkpoints)
|
||||||
extern PFN_vkCmdSetCheckpointNV vkCmdSetCheckpointNV;
|
extern PFN_vkCmdSetCheckpointNV vkCmdSetCheckpointNV;
|
||||||
extern PFN_vkGetQueueCheckpointDataNV vkGetQueueCheckpointDataNV;
|
extern PFN_vkGetQueueCheckpointDataNV vkGetQueueCheckpointDataNV;
|
||||||
|
@ -1366,6 +1778,11 @@ extern PFN_vkCreateIndirectCommandsLayoutNV vkCreateIndirectCommandsLayoutNV;
|
||||||
extern PFN_vkDestroyIndirectCommandsLayoutNV vkDestroyIndirectCommandsLayoutNV;
|
extern PFN_vkDestroyIndirectCommandsLayoutNV vkDestroyIndirectCommandsLayoutNV;
|
||||||
extern PFN_vkGetGeneratedCommandsMemoryRequirementsNV vkGetGeneratedCommandsMemoryRequirementsNV;
|
extern PFN_vkGetGeneratedCommandsMemoryRequirementsNV vkGetGeneratedCommandsMemoryRequirementsNV;
|
||||||
#endif /* defined(VK_NV_device_generated_commands) */
|
#endif /* defined(VK_NV_device_generated_commands) */
|
||||||
|
#if defined(VK_NV_device_generated_commands_compute)
|
||||||
|
extern PFN_vkCmdUpdatePipelineIndirectBufferNV vkCmdUpdatePipelineIndirectBufferNV;
|
||||||
|
extern PFN_vkGetPipelineIndirectDeviceAddressNV vkGetPipelineIndirectDeviceAddressNV;
|
||||||
|
extern PFN_vkGetPipelineIndirectMemoryRequirementsNV vkGetPipelineIndirectMemoryRequirementsNV;
|
||||||
|
#endif /* defined(VK_NV_device_generated_commands_compute) */
|
||||||
#if defined(VK_NV_external_memory_capabilities)
|
#if defined(VK_NV_external_memory_capabilities)
|
||||||
extern PFN_vkGetPhysicalDeviceExternalImageFormatPropertiesNV vkGetPhysicalDeviceExternalImageFormatPropertiesNV;
|
extern PFN_vkGetPhysicalDeviceExternalImageFormatPropertiesNV vkGetPhysicalDeviceExternalImageFormatPropertiesNV;
|
||||||
#endif /* defined(VK_NV_external_memory_capabilities) */
|
#endif /* defined(VK_NV_external_memory_capabilities) */
|
||||||
|
@ -1378,11 +1795,29 @@ extern PFN_vkGetMemoryWin32HandleNV vkGetMemoryWin32HandleNV;
|
||||||
#if defined(VK_NV_fragment_shading_rate_enums)
|
#if defined(VK_NV_fragment_shading_rate_enums)
|
||||||
extern PFN_vkCmdSetFragmentShadingRateEnumNV vkCmdSetFragmentShadingRateEnumNV;
|
extern PFN_vkCmdSetFragmentShadingRateEnumNV vkCmdSetFragmentShadingRateEnumNV;
|
||||||
#endif /* defined(VK_NV_fragment_shading_rate_enums) */
|
#endif /* defined(VK_NV_fragment_shading_rate_enums) */
|
||||||
|
#if defined(VK_NV_low_latency2)
|
||||||
|
extern PFN_vkGetLatencyTimingsNV vkGetLatencyTimingsNV;
|
||||||
|
extern PFN_vkLatencySleepNV vkLatencySleepNV;
|
||||||
|
extern PFN_vkQueueNotifyOutOfBandNV vkQueueNotifyOutOfBandNV;
|
||||||
|
extern PFN_vkSetLatencyMarkerNV vkSetLatencyMarkerNV;
|
||||||
|
extern PFN_vkSetLatencySleepModeNV vkSetLatencySleepModeNV;
|
||||||
|
#endif /* defined(VK_NV_low_latency2) */
|
||||||
|
#if defined(VK_NV_memory_decompression)
|
||||||
|
extern PFN_vkCmdDecompressMemoryIndirectCountNV vkCmdDecompressMemoryIndirectCountNV;
|
||||||
|
extern PFN_vkCmdDecompressMemoryNV vkCmdDecompressMemoryNV;
|
||||||
|
#endif /* defined(VK_NV_memory_decompression) */
|
||||||
#if defined(VK_NV_mesh_shader)
|
#if defined(VK_NV_mesh_shader)
|
||||||
extern PFN_vkCmdDrawMeshTasksIndirectCountNV vkCmdDrawMeshTasksIndirectCountNV;
|
extern PFN_vkCmdDrawMeshTasksIndirectCountNV vkCmdDrawMeshTasksIndirectCountNV;
|
||||||
extern PFN_vkCmdDrawMeshTasksIndirectNV vkCmdDrawMeshTasksIndirectNV;
|
extern PFN_vkCmdDrawMeshTasksIndirectNV vkCmdDrawMeshTasksIndirectNV;
|
||||||
extern PFN_vkCmdDrawMeshTasksNV vkCmdDrawMeshTasksNV;
|
extern PFN_vkCmdDrawMeshTasksNV vkCmdDrawMeshTasksNV;
|
||||||
#endif /* defined(VK_NV_mesh_shader) */
|
#endif /* defined(VK_NV_mesh_shader) */
|
||||||
|
#if defined(VK_NV_optical_flow)
|
||||||
|
extern PFN_vkBindOpticalFlowSessionImageNV vkBindOpticalFlowSessionImageNV;
|
||||||
|
extern PFN_vkCmdOpticalFlowExecuteNV vkCmdOpticalFlowExecuteNV;
|
||||||
|
extern PFN_vkCreateOpticalFlowSessionNV vkCreateOpticalFlowSessionNV;
|
||||||
|
extern PFN_vkDestroyOpticalFlowSessionNV vkDestroyOpticalFlowSessionNV;
|
||||||
|
extern PFN_vkGetPhysicalDeviceOpticalFlowImageFormatsNV vkGetPhysicalDeviceOpticalFlowImageFormatsNV;
|
||||||
|
#endif /* defined(VK_NV_optical_flow) */
|
||||||
#if defined(VK_NV_ray_tracing)
|
#if defined(VK_NV_ray_tracing)
|
||||||
extern PFN_vkBindAccelerationStructureMemoryNV vkBindAccelerationStructureMemoryNV;
|
extern PFN_vkBindAccelerationStructureMemoryNV vkBindAccelerationStructureMemoryNV;
|
||||||
extern PFN_vkCmdBuildAccelerationStructureNV vkCmdBuildAccelerationStructureNV;
|
extern PFN_vkCmdBuildAccelerationStructureNV vkCmdBuildAccelerationStructureNV;
|
||||||
|
@ -1397,6 +1832,9 @@ extern PFN_vkGetAccelerationStructureHandleNV vkGetAccelerationStructureHandleNV
|
||||||
extern PFN_vkGetAccelerationStructureMemoryRequirementsNV vkGetAccelerationStructureMemoryRequirementsNV;
|
extern PFN_vkGetAccelerationStructureMemoryRequirementsNV vkGetAccelerationStructureMemoryRequirementsNV;
|
||||||
extern PFN_vkGetRayTracingShaderGroupHandlesNV vkGetRayTracingShaderGroupHandlesNV;
|
extern PFN_vkGetRayTracingShaderGroupHandlesNV vkGetRayTracingShaderGroupHandlesNV;
|
||||||
#endif /* defined(VK_NV_ray_tracing) */
|
#endif /* defined(VK_NV_ray_tracing) */
|
||||||
|
#if defined(VK_NV_scissor_exclusive) && VK_NV_SCISSOR_EXCLUSIVE_SPEC_VERSION >= 2
|
||||||
|
extern PFN_vkCmdSetExclusiveScissorEnableNV vkCmdSetExclusiveScissorEnableNV;
|
||||||
|
#endif /* defined(VK_NV_scissor_exclusive) && VK_NV_SCISSOR_EXCLUSIVE_SPEC_VERSION >= 2 */
|
||||||
#if defined(VK_NV_scissor_exclusive)
|
#if defined(VK_NV_scissor_exclusive)
|
||||||
extern PFN_vkCmdSetExclusiveScissorNV vkCmdSetExclusiveScissorNV;
|
extern PFN_vkCmdSetExclusiveScissorNV vkCmdSetExclusiveScissorNV;
|
||||||
#endif /* defined(VK_NV_scissor_exclusive) */
|
#endif /* defined(VK_NV_scissor_exclusive) */
|
||||||
|
@ -1405,13 +1843,98 @@ extern PFN_vkCmdBindShadingRateImageNV vkCmdBindShadingRateImageNV;
|
||||||
extern PFN_vkCmdSetCoarseSampleOrderNV vkCmdSetCoarseSampleOrderNV;
|
extern PFN_vkCmdSetCoarseSampleOrderNV vkCmdSetCoarseSampleOrderNV;
|
||||||
extern PFN_vkCmdSetViewportShadingRatePaletteNV vkCmdSetViewportShadingRatePaletteNV;
|
extern PFN_vkCmdSetViewportShadingRatePaletteNV vkCmdSetViewportShadingRatePaletteNV;
|
||||||
#endif /* defined(VK_NV_shading_rate_image) */
|
#endif /* defined(VK_NV_shading_rate_image) */
|
||||||
|
#if defined(VK_QCOM_tile_properties)
|
||||||
|
extern PFN_vkGetDynamicRenderingTilePropertiesQCOM vkGetDynamicRenderingTilePropertiesQCOM;
|
||||||
|
extern PFN_vkGetFramebufferTilePropertiesQCOM vkGetFramebufferTilePropertiesQCOM;
|
||||||
|
#endif /* defined(VK_QCOM_tile_properties) */
|
||||||
|
#if defined(VK_QNX_external_memory_screen_buffer)
|
||||||
|
extern PFN_vkGetScreenBufferPropertiesQNX vkGetScreenBufferPropertiesQNX;
|
||||||
|
#endif /* defined(VK_QNX_external_memory_screen_buffer) */
|
||||||
#if defined(VK_QNX_screen_surface)
|
#if defined(VK_QNX_screen_surface)
|
||||||
extern PFN_vkCreateScreenSurfaceQNX vkCreateScreenSurfaceQNX;
|
extern PFN_vkCreateScreenSurfaceQNX vkCreateScreenSurfaceQNX;
|
||||||
extern PFN_vkGetPhysicalDeviceScreenPresentationSupportQNX vkGetPhysicalDeviceScreenPresentationSupportQNX;
|
extern PFN_vkGetPhysicalDeviceScreenPresentationSupportQNX vkGetPhysicalDeviceScreenPresentationSupportQNX;
|
||||||
#endif /* defined(VK_QNX_screen_surface) */
|
#endif /* defined(VK_QNX_screen_surface) */
|
||||||
|
#if defined(VK_VALVE_descriptor_set_host_mapping)
|
||||||
|
extern PFN_vkGetDescriptorSetHostMappingVALVE vkGetDescriptorSetHostMappingVALVE;
|
||||||
|
extern PFN_vkGetDescriptorSetLayoutHostMappingInfoVALVE vkGetDescriptorSetLayoutHostMappingInfoVALVE;
|
||||||
|
#endif /* defined(VK_VALVE_descriptor_set_host_mapping) */
|
||||||
|
#if (defined(VK_EXT_extended_dynamic_state)) || (defined(VK_EXT_shader_object))
|
||||||
|
extern PFN_vkCmdBindVertexBuffers2EXT vkCmdBindVertexBuffers2EXT;
|
||||||
|
extern PFN_vkCmdSetCullModeEXT vkCmdSetCullModeEXT;
|
||||||
|
extern PFN_vkCmdSetDepthBoundsTestEnableEXT vkCmdSetDepthBoundsTestEnableEXT;
|
||||||
|
extern PFN_vkCmdSetDepthCompareOpEXT vkCmdSetDepthCompareOpEXT;
|
||||||
|
extern PFN_vkCmdSetDepthTestEnableEXT vkCmdSetDepthTestEnableEXT;
|
||||||
|
extern PFN_vkCmdSetDepthWriteEnableEXT vkCmdSetDepthWriteEnableEXT;
|
||||||
|
extern PFN_vkCmdSetFrontFaceEXT vkCmdSetFrontFaceEXT;
|
||||||
|
extern PFN_vkCmdSetPrimitiveTopologyEXT vkCmdSetPrimitiveTopologyEXT;
|
||||||
|
extern PFN_vkCmdSetScissorWithCountEXT vkCmdSetScissorWithCountEXT;
|
||||||
|
extern PFN_vkCmdSetStencilOpEXT vkCmdSetStencilOpEXT;
|
||||||
|
extern PFN_vkCmdSetStencilTestEnableEXT vkCmdSetStencilTestEnableEXT;
|
||||||
|
extern PFN_vkCmdSetViewportWithCountEXT vkCmdSetViewportWithCountEXT;
|
||||||
|
#endif /* (defined(VK_EXT_extended_dynamic_state)) || (defined(VK_EXT_shader_object)) */
|
||||||
|
#if (defined(VK_EXT_extended_dynamic_state2)) || (defined(VK_EXT_shader_object))
|
||||||
|
extern PFN_vkCmdSetDepthBiasEnableEXT vkCmdSetDepthBiasEnableEXT;
|
||||||
|
extern PFN_vkCmdSetLogicOpEXT vkCmdSetLogicOpEXT;
|
||||||
|
extern PFN_vkCmdSetPatchControlPointsEXT vkCmdSetPatchControlPointsEXT;
|
||||||
|
extern PFN_vkCmdSetPrimitiveRestartEnableEXT vkCmdSetPrimitiveRestartEnableEXT;
|
||||||
|
extern PFN_vkCmdSetRasterizerDiscardEnableEXT vkCmdSetRasterizerDiscardEnableEXT;
|
||||||
|
#endif /* (defined(VK_EXT_extended_dynamic_state2)) || (defined(VK_EXT_shader_object)) */
|
||||||
|
#if (defined(VK_EXT_extended_dynamic_state3)) || (defined(VK_EXT_shader_object))
|
||||||
|
extern PFN_vkCmdSetAlphaToCoverageEnableEXT vkCmdSetAlphaToCoverageEnableEXT;
|
||||||
|
extern PFN_vkCmdSetAlphaToOneEnableEXT vkCmdSetAlphaToOneEnableEXT;
|
||||||
|
extern PFN_vkCmdSetColorBlendAdvancedEXT vkCmdSetColorBlendAdvancedEXT;
|
||||||
|
extern PFN_vkCmdSetColorBlendEnableEXT vkCmdSetColorBlendEnableEXT;
|
||||||
|
extern PFN_vkCmdSetColorBlendEquationEXT vkCmdSetColorBlendEquationEXT;
|
||||||
|
extern PFN_vkCmdSetColorWriteMaskEXT vkCmdSetColorWriteMaskEXT;
|
||||||
|
extern PFN_vkCmdSetConservativeRasterizationModeEXT vkCmdSetConservativeRasterizationModeEXT;
|
||||||
|
extern PFN_vkCmdSetDepthClampEnableEXT vkCmdSetDepthClampEnableEXT;
|
||||||
|
extern PFN_vkCmdSetDepthClipEnableEXT vkCmdSetDepthClipEnableEXT;
|
||||||
|
extern PFN_vkCmdSetDepthClipNegativeOneToOneEXT vkCmdSetDepthClipNegativeOneToOneEXT;
|
||||||
|
extern PFN_vkCmdSetExtraPrimitiveOverestimationSizeEXT vkCmdSetExtraPrimitiveOverestimationSizeEXT;
|
||||||
|
extern PFN_vkCmdSetLineRasterizationModeEXT vkCmdSetLineRasterizationModeEXT;
|
||||||
|
extern PFN_vkCmdSetLineStippleEnableEXT vkCmdSetLineStippleEnableEXT;
|
||||||
|
extern PFN_vkCmdSetLogicOpEnableEXT vkCmdSetLogicOpEnableEXT;
|
||||||
|
extern PFN_vkCmdSetPolygonModeEXT vkCmdSetPolygonModeEXT;
|
||||||
|
extern PFN_vkCmdSetProvokingVertexModeEXT vkCmdSetProvokingVertexModeEXT;
|
||||||
|
extern PFN_vkCmdSetRasterizationSamplesEXT vkCmdSetRasterizationSamplesEXT;
|
||||||
|
extern PFN_vkCmdSetRasterizationStreamEXT vkCmdSetRasterizationStreamEXT;
|
||||||
|
extern PFN_vkCmdSetSampleLocationsEnableEXT vkCmdSetSampleLocationsEnableEXT;
|
||||||
|
extern PFN_vkCmdSetSampleMaskEXT vkCmdSetSampleMaskEXT;
|
||||||
|
extern PFN_vkCmdSetTessellationDomainOriginEXT vkCmdSetTessellationDomainOriginEXT;
|
||||||
|
#endif /* (defined(VK_EXT_extended_dynamic_state3)) || (defined(VK_EXT_shader_object)) */
|
||||||
|
#if (defined(VK_EXT_extended_dynamic_state3) && defined(VK_NV_clip_space_w_scaling)) || (defined(VK_EXT_shader_object) && defined(VK_NV_clip_space_w_scaling))
|
||||||
|
extern PFN_vkCmdSetViewportWScalingEnableNV vkCmdSetViewportWScalingEnableNV;
|
||||||
|
#endif /* (defined(VK_EXT_extended_dynamic_state3) && defined(VK_NV_clip_space_w_scaling)) || (defined(VK_EXT_shader_object) && defined(VK_NV_clip_space_w_scaling)) */
|
||||||
|
#if (defined(VK_EXT_extended_dynamic_state3) && defined(VK_NV_viewport_swizzle)) || (defined(VK_EXT_shader_object) && defined(VK_NV_viewport_swizzle))
|
||||||
|
extern PFN_vkCmdSetViewportSwizzleNV vkCmdSetViewportSwizzleNV;
|
||||||
|
#endif /* (defined(VK_EXT_extended_dynamic_state3) && defined(VK_NV_viewport_swizzle)) || (defined(VK_EXT_shader_object) && defined(VK_NV_viewport_swizzle)) */
|
||||||
|
#if (defined(VK_EXT_extended_dynamic_state3) && defined(VK_NV_fragment_coverage_to_color)) || (defined(VK_EXT_shader_object) && defined(VK_NV_fragment_coverage_to_color))
|
||||||
|
extern PFN_vkCmdSetCoverageToColorEnableNV vkCmdSetCoverageToColorEnableNV;
|
||||||
|
extern PFN_vkCmdSetCoverageToColorLocationNV vkCmdSetCoverageToColorLocationNV;
|
||||||
|
#endif /* (defined(VK_EXT_extended_dynamic_state3) && defined(VK_NV_fragment_coverage_to_color)) || (defined(VK_EXT_shader_object) && defined(VK_NV_fragment_coverage_to_color)) */
|
||||||
|
#if (defined(VK_EXT_extended_dynamic_state3) && defined(VK_NV_framebuffer_mixed_samples)) || (defined(VK_EXT_shader_object) && defined(VK_NV_framebuffer_mixed_samples))
|
||||||
|
extern PFN_vkCmdSetCoverageModulationModeNV vkCmdSetCoverageModulationModeNV;
|
||||||
|
extern PFN_vkCmdSetCoverageModulationTableEnableNV vkCmdSetCoverageModulationTableEnableNV;
|
||||||
|
extern PFN_vkCmdSetCoverageModulationTableNV vkCmdSetCoverageModulationTableNV;
|
||||||
|
#endif /* (defined(VK_EXT_extended_dynamic_state3) && defined(VK_NV_framebuffer_mixed_samples)) || (defined(VK_EXT_shader_object) && defined(VK_NV_framebuffer_mixed_samples)) */
|
||||||
|
#if (defined(VK_EXT_extended_dynamic_state3) && defined(VK_NV_shading_rate_image)) || (defined(VK_EXT_shader_object) && defined(VK_NV_shading_rate_image))
|
||||||
|
extern PFN_vkCmdSetShadingRateImageEnableNV vkCmdSetShadingRateImageEnableNV;
|
||||||
|
#endif /* (defined(VK_EXT_extended_dynamic_state3) && defined(VK_NV_shading_rate_image)) || (defined(VK_EXT_shader_object) && defined(VK_NV_shading_rate_image)) */
|
||||||
|
#if (defined(VK_EXT_extended_dynamic_state3) && defined(VK_NV_representative_fragment_test)) || (defined(VK_EXT_shader_object) && defined(VK_NV_representative_fragment_test))
|
||||||
|
extern PFN_vkCmdSetRepresentativeFragmentTestEnableNV vkCmdSetRepresentativeFragmentTestEnableNV;
|
||||||
|
#endif /* (defined(VK_EXT_extended_dynamic_state3) && defined(VK_NV_representative_fragment_test)) || (defined(VK_EXT_shader_object) && defined(VK_NV_representative_fragment_test)) */
|
||||||
|
#if (defined(VK_EXT_extended_dynamic_state3) && defined(VK_NV_coverage_reduction_mode)) || (defined(VK_EXT_shader_object) && defined(VK_NV_coverage_reduction_mode))
|
||||||
|
extern PFN_vkCmdSetCoverageReductionModeNV vkCmdSetCoverageReductionModeNV;
|
||||||
|
#endif /* (defined(VK_EXT_extended_dynamic_state3) && defined(VK_NV_coverage_reduction_mode)) || (defined(VK_EXT_shader_object) && defined(VK_NV_coverage_reduction_mode)) */
|
||||||
#if (defined(VK_EXT_full_screen_exclusive) && defined(VK_KHR_device_group)) || (defined(VK_EXT_full_screen_exclusive) && defined(VK_VERSION_1_1))
|
#if (defined(VK_EXT_full_screen_exclusive) && defined(VK_KHR_device_group)) || (defined(VK_EXT_full_screen_exclusive) && defined(VK_VERSION_1_1))
|
||||||
extern PFN_vkGetDeviceGroupSurfacePresentModes2EXT vkGetDeviceGroupSurfacePresentModes2EXT;
|
extern PFN_vkGetDeviceGroupSurfacePresentModes2EXT vkGetDeviceGroupSurfacePresentModes2EXT;
|
||||||
#endif /* (defined(VK_EXT_full_screen_exclusive) && defined(VK_KHR_device_group)) || (defined(VK_EXT_full_screen_exclusive) && defined(VK_VERSION_1_1)) */
|
#endif /* (defined(VK_EXT_full_screen_exclusive) && defined(VK_KHR_device_group)) || (defined(VK_EXT_full_screen_exclusive) && defined(VK_VERSION_1_1)) */
|
||||||
|
#if (defined(VK_EXT_host_image_copy)) || (defined(VK_EXT_image_compression_control))
|
||||||
|
extern PFN_vkGetImageSubresourceLayout2EXT vkGetImageSubresourceLayout2EXT;
|
||||||
|
#endif /* (defined(VK_EXT_host_image_copy)) || (defined(VK_EXT_image_compression_control)) */
|
||||||
|
#if (defined(VK_EXT_shader_object)) || (defined(VK_EXT_vertex_input_dynamic_state))
|
||||||
|
extern PFN_vkCmdSetVertexInputEXT vkCmdSetVertexInputEXT;
|
||||||
|
#endif /* (defined(VK_EXT_shader_object)) || (defined(VK_EXT_vertex_input_dynamic_state)) */
|
||||||
#if (defined(VK_KHR_descriptor_update_template) && defined(VK_KHR_push_descriptor)) || (defined(VK_KHR_push_descriptor) && defined(VK_VERSION_1_1)) || (defined(VK_KHR_push_descriptor) && defined(VK_KHR_descriptor_update_template))
|
#if (defined(VK_KHR_descriptor_update_template) && defined(VK_KHR_push_descriptor)) || (defined(VK_KHR_push_descriptor) && defined(VK_VERSION_1_1)) || (defined(VK_KHR_push_descriptor) && defined(VK_KHR_descriptor_update_template))
|
||||||
extern PFN_vkCmdPushDescriptorSetWithTemplateKHR vkCmdPushDescriptorSetWithTemplateKHR;
|
extern PFN_vkCmdPushDescriptorSetWithTemplateKHR vkCmdPushDescriptorSetWithTemplateKHR;
|
||||||
#endif /* (defined(VK_KHR_descriptor_update_template) && defined(VK_KHR_push_descriptor)) || (defined(VK_KHR_push_descriptor) && defined(VK_VERSION_1_1)) || (defined(VK_KHR_push_descriptor) && defined(VK_KHR_descriptor_update_template)) */
|
#endif /* (defined(VK_KHR_descriptor_update_template) && defined(VK_KHR_push_descriptor)) || (defined(VK_KHR_push_descriptor) && defined(VK_VERSION_1_1)) || (defined(VK_KHR_push_descriptor) && defined(VK_KHR_descriptor_update_template)) */
|
||||||
|
@ -1433,14 +1956,13 @@ extern PFN_vkAcquireNextImage2KHR vkAcquireNextImage2KHR;
|
||||||
|
|
||||||
#ifdef VOLK_IMPLEMENTATION
|
#ifdef VOLK_IMPLEMENTATION
|
||||||
#undef VOLK_IMPLEMENTATION
|
#undef VOLK_IMPLEMENTATION
|
||||||
// Prevent tools like dependency checkers that don't evaluate
|
/* Prevent tools like dependency checkers from detecting a cyclic dependency */
|
||||||
// macros from detecting a cyclic dependency.
|
|
||||||
#define VOLK_SOURCE "volk.c"
|
#define VOLK_SOURCE "volk.c"
|
||||||
#include VOLK_SOURCE
|
#include VOLK_SOURCE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Copyright (c) 2018-2019 Arseny Kapoulkine
|
* Copyright (c) 2018-2023 Arseny Kapoulkine
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
* of this software and associated documentation files (the "Software"), to deal
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|
|
@ -144,7 +144,7 @@ public:
|
||||||
ImageViewBuilder();
|
ImageViewBuilder();
|
||||||
|
|
||||||
ImageViewBuilder& Type(VkImageViewType type);
|
ImageViewBuilder& Type(VkImageViewType type);
|
||||||
ImageViewBuilder& Image(VulkanImage *image, VkFormat format, VkImageAspectFlags aspectMask = VK_IMAGE_ASPECT_COLOR_BIT);
|
ImageViewBuilder& Image(VulkanImage *image, VkFormat format, VkImageAspectFlags aspectMask = VK_IMAGE_ASPECT_COLOR_BIT, int mipLevel = 0, int arrayLayer = 0, int levelCount = 0, int layerCount = 0);
|
||||||
ImageViewBuilder& DebugName(const char* name) { debugName = name; return *this; }
|
ImageViewBuilder& DebugName(const char* name) { debugName = name; return *this; }
|
||||||
|
|
||||||
std::unique_ptr<VulkanImageView> Create(VulkanDevice *device);
|
std::unique_ptr<VulkanImageView> Create(VulkanDevice *device);
|
||||||
|
@ -350,6 +350,22 @@ private:
|
||||||
const char* debugName = nullptr;
|
const char* debugName = nullptr;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
class ColorBlendAttachmentBuilder
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
ColorBlendAttachmentBuilder();
|
||||||
|
|
||||||
|
ColorBlendAttachmentBuilder& ColorWriteMask(VkColorComponentFlags mask);
|
||||||
|
ColorBlendAttachmentBuilder& AdditiveBlendMode();
|
||||||
|
ColorBlendAttachmentBuilder& AlphaBlendMode();
|
||||||
|
ColorBlendAttachmentBuilder& BlendMode(VkBlendOp op, VkBlendFactor src, VkBlendFactor dst);
|
||||||
|
|
||||||
|
VkPipelineColorBlendAttachmentState Create() { return colorBlendAttachment; }
|
||||||
|
|
||||||
|
private:
|
||||||
|
VkPipelineColorBlendAttachmentState colorBlendAttachment = { };
|
||||||
|
};
|
||||||
|
|
||||||
class GraphicsPipelineBuilder
|
class GraphicsPipelineBuilder
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
@ -369,13 +385,9 @@ public:
|
||||||
GraphicsPipelineBuilder& DepthFunc(VkCompareOp func);
|
GraphicsPipelineBuilder& DepthFunc(VkCompareOp func);
|
||||||
GraphicsPipelineBuilder& DepthClampEnable(bool value);
|
GraphicsPipelineBuilder& DepthClampEnable(bool value);
|
||||||
GraphicsPipelineBuilder& DepthBias(bool enable, float biasConstantFactor, float biasClamp, float biasSlopeFactor);
|
GraphicsPipelineBuilder& DepthBias(bool enable, float biasConstantFactor, float biasClamp, float biasSlopeFactor);
|
||||||
GraphicsPipelineBuilder& ColorWriteMask(VkColorComponentFlags mask);
|
|
||||||
GraphicsPipelineBuilder& Stencil(VkStencilOp failOp, VkStencilOp passOp, VkStencilOp depthFailOp, VkCompareOp compareOp, uint32_t compareMask, uint32_t writeMask, uint32_t reference);
|
GraphicsPipelineBuilder& Stencil(VkStencilOp failOp, VkStencilOp passOp, VkStencilOp depthFailOp, VkCompareOp compareOp, uint32_t compareMask, uint32_t writeMask, uint32_t reference);
|
||||||
|
|
||||||
GraphicsPipelineBuilder& AdditiveBlendMode();
|
GraphicsPipelineBuilder& AddColorBlendAttachment(VkPipelineColorBlendAttachmentState state);
|
||||||
GraphicsPipelineBuilder& AlphaBlendMode();
|
|
||||||
GraphicsPipelineBuilder& BlendMode(VkBlendOp op, VkBlendFactor src, VkBlendFactor dst);
|
|
||||||
GraphicsPipelineBuilder& SubpassColorAttachmentCount(int count);
|
|
||||||
|
|
||||||
GraphicsPipelineBuilder& AddVertexShader(VulkanShader *shader);
|
GraphicsPipelineBuilder& AddVertexShader(VulkanShader *shader);
|
||||||
GraphicsPipelineBuilder& AddFragmentShader(VulkanShader *shader);
|
GraphicsPipelineBuilder& AddFragmentShader(VulkanShader *shader);
|
||||||
|
@ -398,7 +410,6 @@ private:
|
||||||
VkPipelineViewportStateCreateInfo viewportState = { };
|
VkPipelineViewportStateCreateInfo viewportState = { };
|
||||||
VkPipelineRasterizationStateCreateInfo rasterizer = { };
|
VkPipelineRasterizationStateCreateInfo rasterizer = { };
|
||||||
VkPipelineMultisampleStateCreateInfo multisampling = { };
|
VkPipelineMultisampleStateCreateInfo multisampling = { };
|
||||||
VkPipelineColorBlendAttachmentState colorBlendAttachment = { };
|
|
||||||
VkPipelineColorBlendStateCreateInfo colorBlending = { };
|
VkPipelineColorBlendStateCreateInfo colorBlending = { };
|
||||||
VkPipelineDepthStencilStateCreateInfo depthStencil = { };
|
VkPipelineDepthStencilStateCreateInfo depthStencil = { };
|
||||||
VkPipelineDynamicStateCreateInfo dynamicState = {};
|
VkPipelineDynamicStateCreateInfo dynamicState = {};
|
||||||
|
@ -546,3 +557,24 @@ private:
|
||||||
std::vector<VkWriteDescriptorSet> writes;
|
std::vector<VkWriteDescriptorSet> writes;
|
||||||
std::vector<std::unique_ptr<WriteExtra>> writeExtras;
|
std::vector<std::unique_ptr<WriteExtra>> writeExtras;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
class BufferTransfer
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
BufferTransfer& AddBuffer(VulkanBuffer* buffer, size_t offset, const void* data, size_t size);
|
||||||
|
BufferTransfer& AddBuffer(VulkanBuffer* buffer, const void* data, size_t size);
|
||||||
|
BufferTransfer& AddBuffer(VulkanBuffer* buffer, const void* data0, size_t size0, const void* data1, size_t size1);
|
||||||
|
std::unique_ptr<VulkanBuffer> Execute(VulkanDevice* device, VulkanCommandBuffer* cmdbuffer);
|
||||||
|
|
||||||
|
private:
|
||||||
|
struct BufferCopy
|
||||||
|
{
|
||||||
|
VulkanBuffer* buffer;
|
||||||
|
size_t offset;
|
||||||
|
const void* data0;
|
||||||
|
size_t size0;
|
||||||
|
const void* data1;
|
||||||
|
size_t size1;
|
||||||
|
};
|
||||||
|
std::vector<BufferCopy> bufferCopies;
|
||||||
|
};
|
||||||
|
|
|
@ -38,6 +38,7 @@ public:
|
||||||
VkPhysicalDeviceMemoryProperties Memory = {};
|
VkPhysicalDeviceMemoryProperties Memory = {};
|
||||||
VkPhysicalDeviceAccelerationStructurePropertiesKHR AccelerationStructure = { VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_ACCELERATION_STRUCTURE_PROPERTIES_KHR };
|
VkPhysicalDeviceAccelerationStructurePropertiesKHR AccelerationStructure = { VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_ACCELERATION_STRUCTURE_PROPERTIES_KHR };
|
||||||
VkPhysicalDeviceDescriptorIndexingProperties DescriptorIndexing = { VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DESCRIPTOR_INDEXING_PROPERTIES_EXT };
|
VkPhysicalDeviceDescriptorIndexingProperties DescriptorIndexing = { VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DESCRIPTOR_INDEXING_PROPERTIES_EXT };
|
||||||
|
VkPhysicalDeviceLayeredDriverPropertiesMSFT LayeredDriver = { VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_LAYERED_DRIVER_PROPERTIES_MSFT };
|
||||||
};
|
};
|
||||||
|
|
||||||
class VulkanPhysicalDevice
|
class VulkanPhysicalDevice
|
||||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -504,13 +504,15 @@ ImageViewBuilder& ImageViewBuilder::Type(VkImageViewType type)
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
ImageViewBuilder& ImageViewBuilder::Image(VulkanImage* image, VkFormat format, VkImageAspectFlags aspectMask)
|
ImageViewBuilder& ImageViewBuilder::Image(VulkanImage* image, VkFormat format, VkImageAspectFlags aspectMask, int mipLevel, int arrayLayer, int levelCount, int layerCount)
|
||||||
{
|
{
|
||||||
viewInfo.image = image->image;
|
viewInfo.image = image->image;
|
||||||
viewInfo.format = format;
|
viewInfo.format = format;
|
||||||
viewInfo.subresourceRange.levelCount = image->mipLevels;
|
viewInfo.subresourceRange.levelCount = levelCount == 0 ? image->mipLevels : levelCount;
|
||||||
viewInfo.subresourceRange.aspectMask = aspectMask;
|
viewInfo.subresourceRange.aspectMask = aspectMask;
|
||||||
viewInfo.subresourceRange.layerCount = image->layerCount;
|
viewInfo.subresourceRange.layerCount = layerCount == 0 ? image->layerCount : layerCount;
|
||||||
|
viewInfo.subresourceRange.baseMipLevel = mipLevel;
|
||||||
|
viewInfo.subresourceRange.baseArrayLayer = arrayLayer;
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -918,6 +920,63 @@ std::unique_ptr<VulkanFramebuffer> FramebufferBuilder::Create(VulkanDevice* devi
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
|
||||||
|
ColorBlendAttachmentBuilder::ColorBlendAttachmentBuilder()
|
||||||
|
{
|
||||||
|
colorBlendAttachment.colorWriteMask = VK_COLOR_COMPONENT_R_BIT | VK_COLOR_COMPONENT_G_BIT | VK_COLOR_COMPONENT_B_BIT | VK_COLOR_COMPONENT_A_BIT;
|
||||||
|
colorBlendAttachment.blendEnable = VK_FALSE;
|
||||||
|
colorBlendAttachment.srcColorBlendFactor = VK_BLEND_FACTOR_ONE;
|
||||||
|
colorBlendAttachment.dstColorBlendFactor = VK_BLEND_FACTOR_ZERO;
|
||||||
|
colorBlendAttachment.colorBlendOp = VK_BLEND_OP_ADD;
|
||||||
|
colorBlendAttachment.srcAlphaBlendFactor = VK_BLEND_FACTOR_ONE;
|
||||||
|
colorBlendAttachment.dstAlphaBlendFactor = VK_BLEND_FACTOR_ZERO;
|
||||||
|
colorBlendAttachment.alphaBlendOp = VK_BLEND_OP_ADD;
|
||||||
|
}
|
||||||
|
|
||||||
|
ColorBlendAttachmentBuilder& ColorBlendAttachmentBuilder::ColorWriteMask(VkColorComponentFlags mask)
|
||||||
|
{
|
||||||
|
colorBlendAttachment.colorWriteMask = mask;
|
||||||
|
return *this;
|
||||||
|
}
|
||||||
|
|
||||||
|
ColorBlendAttachmentBuilder& ColorBlendAttachmentBuilder::AdditiveBlendMode()
|
||||||
|
{
|
||||||
|
colorBlendAttachment.blendEnable = VK_TRUE;
|
||||||
|
colorBlendAttachment.srcColorBlendFactor = VK_BLEND_FACTOR_ONE;
|
||||||
|
colorBlendAttachment.dstColorBlendFactor = VK_BLEND_FACTOR_ONE;
|
||||||
|
colorBlendAttachment.colorBlendOp = VK_BLEND_OP_ADD;
|
||||||
|
colorBlendAttachment.srcAlphaBlendFactor = VK_BLEND_FACTOR_ONE;
|
||||||
|
colorBlendAttachment.dstAlphaBlendFactor = VK_BLEND_FACTOR_ONE;
|
||||||
|
colorBlendAttachment.alphaBlendOp = VK_BLEND_OP_ADD;
|
||||||
|
return *this;
|
||||||
|
}
|
||||||
|
|
||||||
|
ColorBlendAttachmentBuilder& ColorBlendAttachmentBuilder::AlphaBlendMode()
|
||||||
|
{
|
||||||
|
colorBlendAttachment.blendEnable = VK_TRUE;
|
||||||
|
colorBlendAttachment.srcColorBlendFactor = VK_BLEND_FACTOR_SRC_ALPHA;
|
||||||
|
colorBlendAttachment.dstColorBlendFactor = VK_BLEND_FACTOR_ONE_MINUS_SRC_ALPHA;
|
||||||
|
colorBlendAttachment.colorBlendOp = VK_BLEND_OP_ADD;
|
||||||
|
colorBlendAttachment.srcAlphaBlendFactor = VK_BLEND_FACTOR_SRC_ALPHA;
|
||||||
|
colorBlendAttachment.dstAlphaBlendFactor = VK_BLEND_FACTOR_ONE_MINUS_SRC_ALPHA;
|
||||||
|
colorBlendAttachment.alphaBlendOp = VK_BLEND_OP_ADD;
|
||||||
|
return *this;
|
||||||
|
}
|
||||||
|
|
||||||
|
ColorBlendAttachmentBuilder& ColorBlendAttachmentBuilder::BlendMode(VkBlendOp op, VkBlendFactor src, VkBlendFactor dst)
|
||||||
|
{
|
||||||
|
colorBlendAttachment.blendEnable = VK_TRUE;
|
||||||
|
colorBlendAttachment.srcColorBlendFactor = src;
|
||||||
|
colorBlendAttachment.dstColorBlendFactor = dst;
|
||||||
|
colorBlendAttachment.colorBlendOp = op;
|
||||||
|
colorBlendAttachment.srcAlphaBlendFactor = src;
|
||||||
|
colorBlendAttachment.dstAlphaBlendFactor = dst;
|
||||||
|
colorBlendAttachment.alphaBlendOp = op;
|
||||||
|
return *this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
GraphicsPipelineBuilder::GraphicsPipelineBuilder()
|
GraphicsPipelineBuilder::GraphicsPipelineBuilder()
|
||||||
{
|
{
|
||||||
pipelineInfo.sType = VK_STRUCTURE_TYPE_GRAPHICS_PIPELINE_CREATE_INFO;
|
pipelineInfo.sType = VK_STRUCTURE_TYPE_GRAPHICS_PIPELINE_CREATE_INFO;
|
||||||
|
@ -978,20 +1037,9 @@ GraphicsPipelineBuilder::GraphicsPipelineBuilder()
|
||||||
multisampling.alphaToCoverageEnable = VK_FALSE;
|
multisampling.alphaToCoverageEnable = VK_FALSE;
|
||||||
multisampling.alphaToOneEnable = VK_FALSE;
|
multisampling.alphaToOneEnable = VK_FALSE;
|
||||||
|
|
||||||
colorBlendAttachment.colorWriteMask = VK_COLOR_COMPONENT_R_BIT | VK_COLOR_COMPONENT_G_BIT | VK_COLOR_COMPONENT_B_BIT | VK_COLOR_COMPONENT_A_BIT;
|
|
||||||
colorBlendAttachment.blendEnable = VK_FALSE;
|
|
||||||
colorBlendAttachment.srcColorBlendFactor = VK_BLEND_FACTOR_ONE;
|
|
||||||
colorBlendAttachment.dstColorBlendFactor = VK_BLEND_FACTOR_ZERO;
|
|
||||||
colorBlendAttachment.colorBlendOp = VK_BLEND_OP_ADD;
|
|
||||||
colorBlendAttachment.srcAlphaBlendFactor = VK_BLEND_FACTOR_ONE;
|
|
||||||
colorBlendAttachment.dstAlphaBlendFactor = VK_BLEND_FACTOR_ZERO;
|
|
||||||
colorBlendAttachment.alphaBlendOp = VK_BLEND_OP_ADD;
|
|
||||||
|
|
||||||
colorBlending.sType = VK_STRUCTURE_TYPE_PIPELINE_COLOR_BLEND_STATE_CREATE_INFO;
|
colorBlending.sType = VK_STRUCTURE_TYPE_PIPELINE_COLOR_BLEND_STATE_CREATE_INFO;
|
||||||
colorBlending.logicOpEnable = VK_FALSE;
|
colorBlending.logicOpEnable = VK_FALSE;
|
||||||
colorBlending.logicOp = VK_LOGIC_OP_COPY;
|
colorBlending.logicOp = VK_LOGIC_OP_COPY;
|
||||||
colorBlending.attachmentCount = 1;
|
|
||||||
colorBlending.pAttachments = &colorBlendAttachment;
|
|
||||||
colorBlending.blendConstants[0] = 0.0f;
|
colorBlending.blendConstants[0] = 0.0f;
|
||||||
colorBlending.blendConstants[1] = 0.0f;
|
colorBlending.blendConstants[1] = 0.0f;
|
||||||
colorBlending.blendConstants[2] = 0.0f;
|
colorBlending.blendConstants[2] = 0.0f;
|
||||||
|
@ -1112,53 +1160,9 @@ GraphicsPipelineBuilder& GraphicsPipelineBuilder::DepthBias(bool enable, float b
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
GraphicsPipelineBuilder& GraphicsPipelineBuilder::ColorWriteMask(VkColorComponentFlags mask)
|
GraphicsPipelineBuilder& GraphicsPipelineBuilder::AddColorBlendAttachment(VkPipelineColorBlendAttachmentState state)
|
||||||
{
|
{
|
||||||
colorBlendAttachment.colorWriteMask = mask;
|
colorBlendAttachments.push_back(state);
|
||||||
return *this;
|
|
||||||
}
|
|
||||||
|
|
||||||
GraphicsPipelineBuilder& GraphicsPipelineBuilder::AdditiveBlendMode()
|
|
||||||
{
|
|
||||||
colorBlendAttachment.blendEnable = VK_TRUE;
|
|
||||||
colorBlendAttachment.srcColorBlendFactor = VK_BLEND_FACTOR_ONE;
|
|
||||||
colorBlendAttachment.dstColorBlendFactor = VK_BLEND_FACTOR_ONE;
|
|
||||||
colorBlendAttachment.colorBlendOp = VK_BLEND_OP_ADD;
|
|
||||||
colorBlendAttachment.srcAlphaBlendFactor = VK_BLEND_FACTOR_ONE;
|
|
||||||
colorBlendAttachment.dstAlphaBlendFactor = VK_BLEND_FACTOR_ONE;
|
|
||||||
colorBlendAttachment.alphaBlendOp = VK_BLEND_OP_ADD;
|
|
||||||
return *this;
|
|
||||||
}
|
|
||||||
|
|
||||||
GraphicsPipelineBuilder& GraphicsPipelineBuilder::AlphaBlendMode()
|
|
||||||
{
|
|
||||||
colorBlendAttachment.blendEnable = VK_TRUE;
|
|
||||||
colorBlendAttachment.srcColorBlendFactor = VK_BLEND_FACTOR_SRC_ALPHA;
|
|
||||||
colorBlendAttachment.dstColorBlendFactor = VK_BLEND_FACTOR_ONE_MINUS_SRC_ALPHA;
|
|
||||||
colorBlendAttachment.colorBlendOp = VK_BLEND_OP_ADD;
|
|
||||||
colorBlendAttachment.srcAlphaBlendFactor = VK_BLEND_FACTOR_SRC_ALPHA;
|
|
||||||
colorBlendAttachment.dstAlphaBlendFactor = VK_BLEND_FACTOR_ONE_MINUS_SRC_ALPHA;
|
|
||||||
colorBlendAttachment.alphaBlendOp = VK_BLEND_OP_ADD;
|
|
||||||
return *this;
|
|
||||||
}
|
|
||||||
|
|
||||||
GraphicsPipelineBuilder& GraphicsPipelineBuilder::BlendMode(VkBlendOp op, VkBlendFactor src, VkBlendFactor dst)
|
|
||||||
{
|
|
||||||
colorBlendAttachment.blendEnable = VK_TRUE;
|
|
||||||
colorBlendAttachment.srcColorBlendFactor = src;
|
|
||||||
colorBlendAttachment.dstColorBlendFactor = dst;
|
|
||||||
colorBlendAttachment.colorBlendOp = op;
|
|
||||||
colorBlendAttachment.srcAlphaBlendFactor = src;
|
|
||||||
colorBlendAttachment.dstAlphaBlendFactor = dst;
|
|
||||||
colorBlendAttachment.alphaBlendOp = op;
|
|
||||||
return *this;
|
|
||||||
}
|
|
||||||
|
|
||||||
GraphicsPipelineBuilder& GraphicsPipelineBuilder::SubpassColorAttachmentCount(int count)
|
|
||||||
{
|
|
||||||
colorBlendAttachments.resize(count, colorBlendAttachment);
|
|
||||||
colorBlending.pAttachments = colorBlendAttachments.data();
|
|
||||||
colorBlending.attachmentCount = (uint32_t)colorBlendAttachments.size();
|
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1227,6 +1231,11 @@ GraphicsPipelineBuilder& GraphicsPipelineBuilder::AddDynamicState(VkDynamicState
|
||||||
|
|
||||||
std::unique_ptr<VulkanPipeline> GraphicsPipelineBuilder::Create(VulkanDevice* device)
|
std::unique_ptr<VulkanPipeline> GraphicsPipelineBuilder::Create(VulkanDevice* device)
|
||||||
{
|
{
|
||||||
|
if (colorBlendAttachments.empty())
|
||||||
|
colorBlendAttachments.push_back(ColorBlendAttachmentBuilder().Create());
|
||||||
|
colorBlending.pAttachments = colorBlendAttachments.data();
|
||||||
|
colorBlending.attachmentCount = (uint32_t)colorBlendAttachments.size();
|
||||||
|
|
||||||
VkPipeline pipeline = 0;
|
VkPipeline pipeline = 0;
|
||||||
VkResult result = vkCreateGraphicsPipelines(device->device, cache ? cache->cache : VK_NULL_HANDLE, 1, &pipelineInfo, nullptr, &pipeline);
|
VkResult result = vkCreateGraphicsPipelines(device->device, cache ? cache->cache : VK_NULL_HANDLE, 1, &pipelineInfo, nullptr, &pipeline);
|
||||||
CheckVulkanError(result, "Could not create graphics pipeline");
|
CheckVulkanError(result, "Could not create graphics pipeline");
|
||||||
|
@ -1822,7 +1831,9 @@ std::vector<VulkanCompatibleDevice> VulkanDeviceBuilder::FindDevices(const std::
|
||||||
|
|
||||||
// Check if all required features are there
|
// Check if all required features are there
|
||||||
if (info.Features.Features.samplerAnisotropy != VK_TRUE ||
|
if (info.Features.Features.samplerAnisotropy != VK_TRUE ||
|
||||||
info.Features.Features.fragmentStoresAndAtomics != VK_TRUE)
|
info.Features.Features.fragmentStoresAndAtomics != VK_TRUE ||
|
||||||
|
info.Features.Features.multiDrawIndirect != VK_TRUE ||
|
||||||
|
info.Features.Features.independentBlend != VK_TRUE)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
VulkanCompatibleDevice dev;
|
VulkanCompatibleDevice dev;
|
||||||
|
@ -1845,6 +1856,8 @@ std::vector<VulkanCompatibleDevice> VulkanDeviceBuilder::FindDevices(const std::
|
||||||
enabledFeatures.Features.fragmentStoresAndAtomics = deviceFeatures.Features.fragmentStoresAndAtomics;
|
enabledFeatures.Features.fragmentStoresAndAtomics = deviceFeatures.Features.fragmentStoresAndAtomics;
|
||||||
enabledFeatures.Features.depthClamp = deviceFeatures.Features.depthClamp;
|
enabledFeatures.Features.depthClamp = deviceFeatures.Features.depthClamp;
|
||||||
enabledFeatures.Features.shaderClipDistance = deviceFeatures.Features.shaderClipDistance;
|
enabledFeatures.Features.shaderClipDistance = deviceFeatures.Features.shaderClipDistance;
|
||||||
|
enabledFeatures.Features.multiDrawIndirect = deviceFeatures.Features.multiDrawIndirect;
|
||||||
|
enabledFeatures.Features.independentBlend = deviceFeatures.Features.independentBlend;
|
||||||
enabledFeatures.BufferDeviceAddress.bufferDeviceAddress = deviceFeatures.BufferDeviceAddress.bufferDeviceAddress;
|
enabledFeatures.BufferDeviceAddress.bufferDeviceAddress = deviceFeatures.BufferDeviceAddress.bufferDeviceAddress;
|
||||||
enabledFeatures.AccelerationStructure.accelerationStructure = deviceFeatures.AccelerationStructure.accelerationStructure;
|
enabledFeatures.AccelerationStructure.accelerationStructure = deviceFeatures.AccelerationStructure.accelerationStructure;
|
||||||
enabledFeatures.RayQuery.rayQuery = deviceFeatures.RayQuery.rayQuery;
|
enabledFeatures.RayQuery.rayQuery = deviceFeatures.RayQuery.rayQuery;
|
||||||
|
@ -1852,6 +1865,7 @@ std::vector<VulkanCompatibleDevice> VulkanDeviceBuilder::FindDevices(const std::
|
||||||
enabledFeatures.DescriptorIndexing.descriptorBindingPartiallyBound = deviceFeatures.DescriptorIndexing.descriptorBindingPartiallyBound;
|
enabledFeatures.DescriptorIndexing.descriptorBindingPartiallyBound = deviceFeatures.DescriptorIndexing.descriptorBindingPartiallyBound;
|
||||||
enabledFeatures.DescriptorIndexing.descriptorBindingSampledImageUpdateAfterBind = deviceFeatures.DescriptorIndexing.descriptorBindingSampledImageUpdateAfterBind;
|
enabledFeatures.DescriptorIndexing.descriptorBindingSampledImageUpdateAfterBind = deviceFeatures.DescriptorIndexing.descriptorBindingSampledImageUpdateAfterBind;
|
||||||
enabledFeatures.DescriptorIndexing.descriptorBindingVariableDescriptorCount = deviceFeatures.DescriptorIndexing.descriptorBindingVariableDescriptorCount;
|
enabledFeatures.DescriptorIndexing.descriptorBindingVariableDescriptorCount = deviceFeatures.DescriptorIndexing.descriptorBindingVariableDescriptorCount;
|
||||||
|
enabledFeatures.DescriptorIndexing.shaderSampledImageArrayNonUniformIndexing = deviceFeatures.DescriptorIndexing.shaderSampledImageArrayNonUniformIndexing;
|
||||||
|
|
||||||
// Figure out which queue can present
|
// Figure out which queue can present
|
||||||
if (surface)
|
if (surface)
|
||||||
|
@ -1901,6 +1915,12 @@ std::vector<VulkanCompatibleDevice> VulkanDeviceBuilder::FindDevices(const std::
|
||||||
if (sortA != sortB)
|
if (sortA != sortB)
|
||||||
return sortA < sortB;
|
return sortA < sortB;
|
||||||
|
|
||||||
|
// Any driver that is emulating vulkan (i.e. via Direct3D 12) should only be chosen as the last option within each GPU type
|
||||||
|
sortA = a.Device->Properties.LayeredDriver.underlyingAPI;
|
||||||
|
sortB = b.Device->Properties.LayeredDriver.underlyingAPI;
|
||||||
|
if (sortA != sortB)
|
||||||
|
return sortA < sortB;
|
||||||
|
|
||||||
// Then sort by the device's unique ID so that vk_device uses a consistent order
|
// Then sort by the device's unique ID so that vk_device uses a consistent order
|
||||||
int sortUUID = memcmp(a.Device->Properties.Properties.pipelineCacheUUID, b.Device->Properties.Properties.pipelineCacheUUID, VK_UUID_SIZE);
|
int sortUUID = memcmp(a.Device->Properties.Properties.pipelineCacheUUID, b.Device->Properties.Properties.pipelineCacheUUID, VK_UUID_SIZE);
|
||||||
return sortUUID < 0;
|
return sortUUID < 0;
|
||||||
|
@ -1935,3 +1955,64 @@ std::shared_ptr<VulkanSwapChain> VulkanSwapChainBuilder::Create(VulkanDevice* de
|
||||||
{
|
{
|
||||||
return std::make_shared<VulkanSwapChain>(device);
|
return std::make_shared<VulkanSwapChain>(device);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
BufferTransfer& BufferTransfer::AddBuffer(VulkanBuffer* buffer, size_t offset, const void* data, size_t size)
|
||||||
|
{
|
||||||
|
bufferCopies.push_back({ buffer, offset, data, size, nullptr, 0 });
|
||||||
|
return *this;
|
||||||
|
}
|
||||||
|
|
||||||
|
BufferTransfer& BufferTransfer::AddBuffer(VulkanBuffer* buffer, const void* data, size_t size)
|
||||||
|
{
|
||||||
|
bufferCopies.push_back({ buffer, 0, data, size, nullptr, 0 });
|
||||||
|
return *this;
|
||||||
|
}
|
||||||
|
|
||||||
|
BufferTransfer& BufferTransfer::AddBuffer(VulkanBuffer* buffer, const void* data0, size_t size0, const void* data1, size_t size1)
|
||||||
|
{
|
||||||
|
bufferCopies.push_back({ buffer, 0, data0, size0, data1, size1 });
|
||||||
|
return *this;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::unique_ptr<VulkanBuffer> BufferTransfer::Execute(VulkanDevice* device, VulkanCommandBuffer* cmdbuffer)
|
||||||
|
{
|
||||||
|
size_t transferbuffersize = 0;
|
||||||
|
for (const auto& copy : bufferCopies)
|
||||||
|
transferbuffersize += copy.size0 + copy.size1;
|
||||||
|
|
||||||
|
if (transferbuffersize == 0)
|
||||||
|
return nullptr;
|
||||||
|
|
||||||
|
auto transferBuffer = BufferBuilder()
|
||||||
|
.Usage(VK_BUFFER_USAGE_TRANSFER_SRC_BIT, VMA_MEMORY_USAGE_CPU_ONLY)
|
||||||
|
.Size(transferbuffersize)
|
||||||
|
.DebugName("BufferTransfer.transferBuffer")
|
||||||
|
.Create(device);
|
||||||
|
|
||||||
|
uint8_t* data = (uint8_t*)transferBuffer->Map(0, transferbuffersize);
|
||||||
|
size_t pos = 0;
|
||||||
|
for (const auto& copy : bufferCopies)
|
||||||
|
{
|
||||||
|
memcpy(data + pos, copy.data0, copy.size0);
|
||||||
|
pos += copy.size0;
|
||||||
|
memcpy(data + pos, copy.data1, copy.size1);
|
||||||
|
pos += copy.size1;
|
||||||
|
}
|
||||||
|
transferBuffer->Unmap();
|
||||||
|
|
||||||
|
pos = 0;
|
||||||
|
for (const auto& copy : bufferCopies)
|
||||||
|
{
|
||||||
|
if (copy.size0 > 0)
|
||||||
|
cmdbuffer->copyBuffer(transferBuffer.get(), copy.buffer, pos, copy.offset, copy.size0);
|
||||||
|
pos += copy.size0;
|
||||||
|
|
||||||
|
if (copy.size1 > 0)
|
||||||
|
cmdbuffer->copyBuffer(transferBuffer.get(), copy.buffer, pos, copy.offset + copy.size0, copy.size1);
|
||||||
|
pos += copy.size1;
|
||||||
|
}
|
||||||
|
|
||||||
|
return transferBuffer;
|
||||||
|
}
|
||||||
|
|
|
@ -200,11 +200,17 @@ std::vector<VulkanPhysicalDevice> VulkanInstance::GetPhysicalDevices(VkInstance
|
||||||
*next = &dev.Properties.DescriptorIndexing;
|
*next = &dev.Properties.DescriptorIndexing;
|
||||||
next = &dev.Properties.DescriptorIndexing.pNext;
|
next = &dev.Properties.DescriptorIndexing.pNext;
|
||||||
}
|
}
|
||||||
|
if (checkForExtension(VK_MSFT_LAYERED_DRIVER_EXTENSION_NAME))
|
||||||
|
{
|
||||||
|
*next = &dev.Properties.LayeredDriver;
|
||||||
|
next = &dev.Properties.LayeredDriver.pNext;
|
||||||
|
}
|
||||||
|
|
||||||
vkGetPhysicalDeviceProperties2(dev.Device, &deviceProperties2);
|
vkGetPhysicalDeviceProperties2(dev.Device, &deviceProperties2);
|
||||||
dev.Properties.Properties = deviceProperties2.properties;
|
dev.Properties.Properties = deviceProperties2.properties;
|
||||||
dev.Properties.AccelerationStructure.pNext = nullptr;
|
dev.Properties.AccelerationStructure.pNext = nullptr;
|
||||||
dev.Properties.DescriptorIndexing.pNext = nullptr;
|
dev.Properties.DescriptorIndexing.pNext = nullptr;
|
||||||
|
dev.Properties.LayeredDriver.pNext = nullptr;
|
||||||
|
|
||||||
VkPhysicalDeviceFeatures2 deviceFeatures2 = { VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FEATURES_2 };
|
VkPhysicalDeviceFeatures2 deviceFeatures2 = { VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FEATURES_2 };
|
||||||
|
|
||||||
|
|
|
@ -126,9 +126,9 @@ bool VulkanSwapChain::CreateSwapchain(int width, int height, int imageCount, boo
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (supportsMailbox)
|
/*if (supportsMailbox)
|
||||||
presentMode = VK_PRESENT_MODE_MAILBOX_KHR;
|
presentMode = VK_PRESENT_MODE_MAILBOX_KHR;
|
||||||
else if (supportsImmediate)
|
else*/ if (supportsImmediate)
|
||||||
presentMode = VK_PRESENT_MODE_IMMEDIATE_KHR;
|
presentMode = VK_PRESENT_MODE_IMMEDIATE_KHR;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -140,6 +140,8 @@ bool VulkanSwapChain::CreateSwapchain(int width, int height, int imageCount, boo
|
||||||
actualExtent.height = std::max(caps.Capabilites.minImageExtent.height, std::min(caps.Capabilites.maxImageExtent.height, actualExtent.height));
|
actualExtent.height = std::max(caps.Capabilites.minImageExtent.height, std::min(caps.Capabilites.maxImageExtent.height, actualExtent.height));
|
||||||
if (actualExtent.width == 0 || actualExtent.height == 0)
|
if (actualExtent.width == 0 || actualExtent.height == 0)
|
||||||
{
|
{
|
||||||
|
if (swapchain)
|
||||||
|
vkDestroySwapchainKHR(device->device, swapchain, nullptr);
|
||||||
swapchain = VK_NULL_HANDLE;
|
swapchain = VK_NULL_HANDLE;
|
||||||
lost = true;
|
lost = true;
|
||||||
return false;
|
return false;
|
||||||
|
|
|
@ -1386,7 +1386,7 @@ if( NOT WIN32 AND NOT APPLE )
|
||||||
IF ("${INSTALL_RPATH}" STREQUAL "")
|
IF ("${INSTALL_RPATH}" STREQUAL "")
|
||||||
set_target_properties(zdoom PROPERTIES
|
set_target_properties(zdoom PROPERTIES
|
||||||
#allow libzmusic.so.1 library in same folder as executable at runtime
|
#allow libzmusic.so.1 library in same folder as executable at runtime
|
||||||
INSTALL_RPATH "\$ORIGIN"
|
INSTALL_RPATH "\$ORIGIN:\$ORIGIN/zmusic/build/source"
|
||||||
BUILD_WITH_INSTALL_RPATH ON
|
BUILD_WITH_INSTALL_RPATH ON
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
|
@ -2952,7 +2952,8 @@ void DAutomap::drawThings ()
|
||||||
if (am_cheat > 0 || !(t->flags6 & MF6_NOTONAUTOMAP)
|
if (am_cheat > 0 || !(t->flags6 & MF6_NOTONAUTOMAP)
|
||||||
|| (am_thingrenderstyles && !(t->renderflags & RF_INVISIBLE) && !(t->flags6 & MF6_NOTONAUTOMAP)))
|
|| (am_thingrenderstyles && !(t->renderflags & RF_INVISIBLE) && !(t->flags6 & MF6_NOTONAUTOMAP)))
|
||||||
{
|
{
|
||||||
DVector3 pos = t->InterpolatedPosition(r_viewpoint.TicFrac) + t->Level->Displacements.getOffset(sec.PortalGroup, MapPortalGroup);
|
DVector3 fracPos = t->InterpolatedPosition(r_viewpoint.TicFrac);
|
||||||
|
FVector2 pos = FVector2(float(fracPos.X),float(fracPos.Y)) + FVector2(t->Level->Displacements.getOffset(sec.PortalGroup, MapPortalGroup)) + FVector2(t->AutomapOffsets);
|
||||||
p.x = pos.X;
|
p.x = pos.X;
|
||||||
p.y = pos.Y;
|
p.y = pos.Y;
|
||||||
|
|
||||||
|
@ -2962,14 +2963,14 @@ void DAutomap::drawThings ()
|
||||||
spriteframe_t *frame;
|
spriteframe_t *frame;
|
||||||
int rotation = 0;
|
int rotation = 0;
|
||||||
|
|
||||||
// try all modes backwards until a valid texture has been found.
|
// try all modes backwards until a valid texture has been found.
|
||||||
for(int show = am_showthingsprites; show > 0 && texture == nullptr; show--)
|
for(int show = am_showthingsprites; show > 0 && texture == nullptr; show--)
|
||||||
{
|
{
|
||||||
const spritedef_t& sprite = sprites[t->sprite];
|
const spritedef_t& sprite = sprites[t->sprite];
|
||||||
const size_t spriteIndex = sprite.spriteframes + (show > 1 ? t->frame : 0);
|
const size_t spriteIndex = sprite.spriteframes + (show > 1 ? t->frame : 0);
|
||||||
|
|
||||||
frame = &SpriteFrames[spriteIndex];
|
frame = &SpriteFrames[spriteIndex];
|
||||||
DAngle angle = DAngle::fromDeg(270. + 22.5) - t->InterpolatedAngles(r_viewpoint.TicFrac).Yaw;
|
DAngle angle = DAngle::fromDeg(270.) - t->InterpolatedAngles(r_viewpoint.TicFrac).Yaw - t->SpriteRotation;
|
||||||
if (frame->Texture[0] != frame->Texture[1]) angle += DAngle::fromDeg(180. / 16);
|
if (frame->Texture[0] != frame->Texture[1]) angle += DAngle::fromDeg(180. / 16);
|
||||||
if (am_rotate == 1 || (am_rotate == 2 && viewactive))
|
if (am_rotate == 1 || (am_rotate == 2 && viewactive))
|
||||||
{
|
{
|
||||||
|
|
|
@ -80,7 +80,6 @@ xx(__decorate_internal_float__)
|
||||||
// Per-actor sound channels (for deprecated PlaySoundEx function) Do not separate this block!!!
|
// Per-actor sound channels (for deprecated PlaySoundEx function) Do not separate this block!!!
|
||||||
xx(Auto)
|
xx(Auto)
|
||||||
xx(Weapon)
|
xx(Weapon)
|
||||||
xx(BobPivot3D)
|
|
||||||
xx(Voice)
|
xx(Voice)
|
||||||
xx(Item)
|
xx(Item)
|
||||||
xx(Body)
|
xx(Body)
|
||||||
|
@ -88,6 +87,9 @@ xx(SoundSlot5)
|
||||||
xx(SoundSlot6)
|
xx(SoundSlot6)
|
||||||
xx(SoundSlot7)
|
xx(SoundSlot7)
|
||||||
|
|
||||||
|
// Actor properties
|
||||||
|
xx(BobPivot3D)
|
||||||
|
|
||||||
xx(LevelLocals)
|
xx(LevelLocals)
|
||||||
xx(Level)
|
xx(Level)
|
||||||
|
|
||||||
|
|
|
@ -35,6 +35,7 @@
|
||||||
|
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include <stdexcept>
|
#include <stdexcept>
|
||||||
|
#include <cstdint>
|
||||||
#include "w_zip.h"
|
#include "w_zip.h"
|
||||||
#include "ancientzip.h"
|
#include "ancientzip.h"
|
||||||
#include "resourcefile.h"
|
#include "resourcefile.h"
|
||||||
|
|
|
@ -1039,6 +1039,7 @@ DEFINE_FIELD(DListMenuDescriptor, mFontColor2)
|
||||||
DEFINE_FIELD(DListMenuDescriptor, mAnimatedTransition)
|
DEFINE_FIELD(DListMenuDescriptor, mAnimatedTransition)
|
||||||
DEFINE_FIELD(DListMenuDescriptor, mAnimated)
|
DEFINE_FIELD(DListMenuDescriptor, mAnimated)
|
||||||
DEFINE_FIELD(DListMenuDescriptor, mCenter)
|
DEFINE_FIELD(DListMenuDescriptor, mCenter)
|
||||||
|
DEFINE_FIELD(DListMenuDescriptor, mCenterText)
|
||||||
DEFINE_FIELD(DListMenuDescriptor, mDontDim)
|
DEFINE_FIELD(DListMenuDescriptor, mDontDim)
|
||||||
DEFINE_FIELD(DListMenuDescriptor, mDontBlur)
|
DEFINE_FIELD(DListMenuDescriptor, mDontBlur)
|
||||||
DEFINE_FIELD(DListMenuDescriptor, mVirtWidth)
|
DEFINE_FIELD(DListMenuDescriptor, mVirtWidth)
|
||||||
|
|
|
@ -88,6 +88,7 @@ public:
|
||||||
EColorRange mFontColor;
|
EColorRange mFontColor;
|
||||||
EColorRange mFontColor2;
|
EColorRange mFontColor2;
|
||||||
bool mCenter;
|
bool mCenter;
|
||||||
|
bool mCenterText;
|
||||||
bool mFromEngine;
|
bool mFromEngine;
|
||||||
bool mAnimated;
|
bool mAnimated;
|
||||||
bool mAnimatedTransition;
|
bool mAnimatedTransition;
|
||||||
|
|
|
@ -431,6 +431,10 @@ static void DoParseListMenuBody(FScanner &sc, DListMenuDescriptor *desc, bool &s
|
||||||
{
|
{
|
||||||
desc->mForceList = true;
|
desc->mForceList = true;
|
||||||
}
|
}
|
||||||
|
else if (sc.Compare("CenterText"))
|
||||||
|
{
|
||||||
|
desc->mCenterText = true;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// all item classes from which we know that they support sized scaling.
|
// all item classes from which we know that they support sized scaling.
|
||||||
|
@ -768,6 +772,7 @@ static void ParseListMenu(FScanner &sc)
|
||||||
desc->mWLeft = 0;
|
desc->mWLeft = 0;
|
||||||
desc->mWRight = 0;
|
desc->mWRight = 0;
|
||||||
desc->mCenter = false;
|
desc->mCenter = false;
|
||||||
|
desc->mCenterText = false;
|
||||||
desc->mFromEngine = fileSystem.GetFileContainer(sc.LumpNum) == 0; // flags menu if the definition is from the IWAD.
|
desc->mFromEngine = fileSystem.GetFileContainer(sc.LumpNum) == 0; // flags menu if the definition is from the IWAD.
|
||||||
desc->mVirtWidth = -2;
|
desc->mVirtWidth = -2;
|
||||||
desc->mCustomSizeSet = false;
|
desc->mCustomSizeSet = false;
|
||||||
|
|
|
@ -54,3 +54,5 @@ EXTERN_CVAR(Int, gl_shadowmap_filter)
|
||||||
EXTERN_CVAR(Bool, gl_brightfog)
|
EXTERN_CVAR(Bool, gl_brightfog)
|
||||||
EXTERN_CVAR(Bool, gl_lightadditivesurfaces)
|
EXTERN_CVAR(Bool, gl_lightadditivesurfaces)
|
||||||
EXTERN_CVAR(Bool, gl_notexturefill)
|
EXTERN_CVAR(Bool, gl_notexturefill)
|
||||||
|
|
||||||
|
EXTERN_CVAR(Bool, r_drawplayersprites)
|
||||||
|
|
|
@ -146,11 +146,27 @@ float VREyeInfo::getShift() const
|
||||||
return vr_swap_eyes ? -res : res;
|
return vr_swap_eyes ? -res : res;
|
||||||
}
|
}
|
||||||
|
|
||||||
VSMatrix VREyeInfo::GetProjection(float fov, float aspectRatio, float fovRatio) const
|
VSMatrix VREyeInfo::GetProjection(float fov, float aspectRatio, float fovRatio, bool iso_ortho) const
|
||||||
{
|
{
|
||||||
VSMatrix result;
|
VSMatrix result;
|
||||||
|
|
||||||
if (mShiftFactor == 0)
|
if (iso_ortho) // Orthographic projection for isometric viewpoint
|
||||||
|
{
|
||||||
|
double zNear = -1.0; // screen->GetZNear();
|
||||||
|
double zFar = screen->GetZFar();
|
||||||
|
|
||||||
|
double fH = tan(DEG2RAD(fov) / 2) / fovRatio;
|
||||||
|
double fW = fH * aspectRatio * mScaleFactor;
|
||||||
|
double left = -fW;
|
||||||
|
double right = fW;
|
||||||
|
double bottom = -fH;
|
||||||
|
double top = fH;
|
||||||
|
|
||||||
|
VSMatrix fmat(1);
|
||||||
|
fmat.ortho((float)left, (float)right, (float)bottom, (float)top, (float)zNear, (float)zFar);
|
||||||
|
return fmat;
|
||||||
|
}
|
||||||
|
else if (mShiftFactor == 0)
|
||||||
{
|
{
|
||||||
float fovy = (float)(2 * RAD2DEG(atan(tan(DEG2RAD(fov) / 2) / fovRatio)));
|
float fovy = (float)(2 * RAD2DEG(atan(tan(DEG2RAD(fov) / 2) / fovRatio)));
|
||||||
result.perspective(fovy, aspectRatio, screen->GetZNear(), screen->GetZFar());
|
result.perspective(fovy, aspectRatio, screen->GetZNear(), screen->GetZFar());
|
||||||
|
|
|
@ -27,7 +27,7 @@ struct VREyeInfo
|
||||||
float mShiftFactor;
|
float mShiftFactor;
|
||||||
float mScaleFactor;
|
float mScaleFactor;
|
||||||
|
|
||||||
VSMatrix GetProjection(float fov, float aspectRatio, float fovRatio) const;
|
VSMatrix GetProjection(float fov, float aspectRatio, float fovRatio, bool iso_ortho) const;
|
||||||
DVector3 GetViewShift(float yaw) const;
|
DVector3 GetViewShift(float yaw) const;
|
||||||
private:
|
private:
|
||||||
float getShift() const;
|
float getShift() const;
|
||||||
|
|
|
@ -319,10 +319,15 @@ std::unique_ptr<VulkanPipeline> VkRenderPassSetup::CreatePipeline(const VkPipeli
|
||||||
// main.vp addresses this by patching up gl_Position.z, which has the side effect of flipping the sign of the front face calculations.
|
// main.vp addresses this by patching up gl_Position.z, which has the side effect of flipping the sign of the front face calculations.
|
||||||
builder.Cull(key.CullMode == Cull_None ? VK_CULL_MODE_NONE : VK_CULL_MODE_BACK_BIT, key.CullMode == Cull_CW ? VK_FRONT_FACE_COUNTER_CLOCKWISE : VK_FRONT_FACE_CLOCKWISE);
|
builder.Cull(key.CullMode == Cull_None ? VK_CULL_MODE_NONE : VK_CULL_MODE_BACK_BIT, key.CullMode == Cull_CW ? VK_FRONT_FACE_COUNTER_CLOCKWISE : VK_FRONT_FACE_CLOCKWISE);
|
||||||
|
|
||||||
builder.ColorWriteMask((VkColorComponentFlags)key.ColorMask);
|
|
||||||
builder.Stencil(VK_STENCIL_OP_KEEP, op2vk[key.StencilPassOp], VK_STENCIL_OP_KEEP, VK_COMPARE_OP_EQUAL, 0xffffffff, 0xffffffff, 0);
|
builder.Stencil(VK_STENCIL_OP_KEEP, op2vk[key.StencilPassOp], VK_STENCIL_OP_KEEP, VK_COMPARE_OP_EQUAL, 0xffffffff, 0xffffffff, 0);
|
||||||
BlendMode(builder, key.RenderStyle);
|
|
||||||
builder.SubpassColorAttachmentCount(PassKey.DrawBuffers);
|
ColorBlendAttachmentBuilder blendbuilder;
|
||||||
|
blendbuilder.ColorWriteMask((VkColorComponentFlags)key.ColorMask);
|
||||||
|
BlendMode(blendbuilder, key.RenderStyle);
|
||||||
|
|
||||||
|
for (int i = 0; i < PassKey.DrawBuffers; i++)
|
||||||
|
builder.AddColorBlendAttachment(blendbuilder.Create());
|
||||||
|
|
||||||
builder.RasterizationSamples((VkSampleCountFlagBits)PassKey.Samples);
|
builder.RasterizationSamples((VkSampleCountFlagBits)PassKey.Samples);
|
||||||
|
|
||||||
builder.Layout(fb->GetRenderPassManager()->GetPipelineLayout(key.NumTextureLayers));
|
builder.Layout(fb->GetRenderPassManager()->GetPipelineLayout(key.NumTextureLayers));
|
||||||
|
@ -389,7 +394,11 @@ void VkPPRenderPassSetup::CreatePipeline(const VkPPRenderPassKey& key)
|
||||||
builder.Stencil(VK_STENCIL_OP_KEEP, VK_STENCIL_OP_KEEP, VK_STENCIL_OP_KEEP, VK_COMPARE_OP_EQUAL, 0xffffffff, 0xffffffff, 0);
|
builder.Stencil(VK_STENCIL_OP_KEEP, VK_STENCIL_OP_KEEP, VK_STENCIL_OP_KEEP, VK_COMPARE_OP_EQUAL, 0xffffffff, 0xffffffff, 0);
|
||||||
}
|
}
|
||||||
builder.Topology(VK_PRIMITIVE_TOPOLOGY_TRIANGLE_STRIP);
|
builder.Topology(VK_PRIMITIVE_TOPOLOGY_TRIANGLE_STRIP);
|
||||||
BlendMode(builder, key.BlendMode);
|
|
||||||
|
ColorBlendAttachmentBuilder blendbuilder;
|
||||||
|
BlendMode(blendbuilder, key.BlendMode);
|
||||||
|
builder.AddColorBlendAttachment(blendbuilder.Create());
|
||||||
|
|
||||||
builder.RasterizationSamples(key.Samples);
|
builder.RasterizationSamples(key.Samples);
|
||||||
builder.Layout(PipelineLayout.get());
|
builder.Layout(PipelineLayout.get());
|
||||||
builder.RenderPass(RenderPass.get());
|
builder.RenderPass(RenderPass.get());
|
||||||
|
@ -447,7 +456,7 @@ void VkPPRenderPassSetup::CreateRenderPass(const VkPPRenderPassKey& key)
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
GraphicsPipelineBuilder& BlendMode(GraphicsPipelineBuilder& builder, const FRenderStyle& style)
|
ColorBlendAttachmentBuilder& BlendMode(ColorBlendAttachmentBuilder& builder, const FRenderStyle& style)
|
||||||
{
|
{
|
||||||
// Just in case Vulkan doesn't do this optimization itself
|
// Just in case Vulkan doesn't do this optimization itself
|
||||||
if (style.BlendOp == STYLEOP_Add && style.SrcAlpha == STYLEALPHA_One && style.DestAlpha == STYLEALPHA_Zero && style.Flags == 0)
|
if (style.BlendOp == STYLEOP_Add && style.SrcAlpha == STYLEALPHA_One && style.DestAlpha == STYLEALPHA_Zero && style.Flags == 0)
|
||||||
|
|
|
@ -12,6 +12,7 @@
|
||||||
class VulkanRenderDevice;
|
class VulkanRenderDevice;
|
||||||
class VkPPShader;
|
class VkPPShader;
|
||||||
class GraphicsPipelineBuilder;
|
class GraphicsPipelineBuilder;
|
||||||
|
class ColorBlendAttachmentBuilder;
|
||||||
|
|
||||||
class VkPipelineKey
|
class VkPipelineKey
|
||||||
{
|
{
|
||||||
|
@ -118,7 +119,7 @@ private:
|
||||||
VulkanRenderDevice* fb = nullptr;
|
VulkanRenderDevice* fb = nullptr;
|
||||||
};
|
};
|
||||||
|
|
||||||
GraphicsPipelineBuilder& BlendMode(GraphicsPipelineBuilder& builder, const FRenderStyle& style);
|
ColorBlendAttachmentBuilder& BlendMode(ColorBlendAttachmentBuilder& builder, const FRenderStyle& style);
|
||||||
|
|
||||||
class VkRenderPassManager
|
class VkRenderPassManager
|
||||||
{
|
{
|
||||||
|
|
|
@ -71,9 +71,16 @@ static FString ResolveIncludePath(const FString &path,const FString &lumpname){
|
||||||
{
|
{
|
||||||
relativePath = relativePath.Mid(3);
|
relativePath = relativePath.Mid(3);
|
||||||
auto slash_index = fullPath.LastIndexOf("/");
|
auto slash_index = fullPath.LastIndexOf("/");
|
||||||
if (slash_index != -1) {
|
if (slash_index != -1)
|
||||||
|
{
|
||||||
fullPath = fullPath.Mid(0, slash_index);
|
fullPath = fullPath.Mid(0, slash_index);
|
||||||
} else {
|
}
|
||||||
|
else if (fullPath.IsNotEmpty())
|
||||||
|
{
|
||||||
|
fullPath = "";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
pathOk = false;
|
pathOk = false;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -575,6 +575,10 @@ CUSTOM_CVAR(Int, dmflags3, 0, CVAR_SERVERINFO | CVAR_NOINITCALL)
|
||||||
|
|
||||||
CVAR(Flag, sv_noplayerclip, dmflags3, DF3_NO_PLAYER_CLIP);
|
CVAR(Flag, sv_noplayerclip, dmflags3, DF3_NO_PLAYER_CLIP);
|
||||||
CVAR(Flag, sv_coopsharekeys, dmflags3, DF3_COOP_SHARE_KEYS);
|
CVAR(Flag, sv_coopsharekeys, dmflags3, DF3_COOP_SHARE_KEYS);
|
||||||
|
CVAR(Flag, sv_localitems, dmflags3, DF3_LOCAL_ITEMS);
|
||||||
|
CVAR(Flag, sv_nolocaldrops, dmflags3, DF3_NO_LOCAL_DROPS);
|
||||||
|
CVAR(Flag, sv_nocoopitems, dmflags3, DF3_NO_COOP_ONLY_ITEMS);
|
||||||
|
CVAR(Flag, sv_nocoopthings, dmflags3, DF3_NO_COOP_ONLY_THINGS);
|
||||||
|
|
||||||
//==========================================================================
|
//==========================================================================
|
||||||
//
|
//
|
||||||
|
|
|
@ -180,7 +180,11 @@ enum : unsigned
|
||||||
enum : unsigned
|
enum : unsigned
|
||||||
{
|
{
|
||||||
DF3_NO_PLAYER_CLIP = 1 << 0, // Players can walk through and shoot through each other
|
DF3_NO_PLAYER_CLIP = 1 << 0, // Players can walk through and shoot through each other
|
||||||
DF3_COOP_SHARE_KEYS = 1 << 1, // Keys will be given to all players in coop
|
DF3_COOP_SHARE_KEYS = 1 << 1, // Keys and other core items will be given to all players in coop
|
||||||
|
DF3_LOCAL_ITEMS = 1 << 2, // Items are picked up client-side rather than fully taken by the client who picked it up
|
||||||
|
DF3_NO_LOCAL_DROPS = 1 << 3, // Drops from Actors aren't picked up locally
|
||||||
|
DF3_NO_COOP_ONLY_ITEMS = 1 << 4, // Items that only appear in co-op are disabled
|
||||||
|
DF3_NO_COOP_ONLY_THINGS = 1 << 5, // Any Actor that only appears in co-op is disabled
|
||||||
};
|
};
|
||||||
|
|
||||||
// [RH] Compatibility flags.
|
// [RH] Compatibility flags.
|
||||||
|
|
|
@ -152,7 +152,7 @@ private:
|
||||||
// Polyobjects
|
// Polyobjects
|
||||||
void InitSideLists();
|
void InitSideLists();
|
||||||
void IterFindPolySides(FPolyObj *po, side_t *side);
|
void IterFindPolySides(FPolyObj *po, side_t *side);
|
||||||
void SpawnPolyobj(int index, int tag, int type);
|
void SpawnPolyobj(int index, int tag, int type, int damage);
|
||||||
void TranslateToStartSpot(int tag, const DVector2 &origin);
|
void TranslateToStartSpot(int tag, const DVector2 &origin);
|
||||||
void InitPolyBlockMap(void);
|
void InitPolyBlockMap(void);
|
||||||
|
|
||||||
|
|
|
@ -148,7 +148,22 @@ static int posicmp(const void *a, const void *b)
|
||||||
return (*(const side_t **)a)->linedef->args[1] - (*(const side_t **)b)->linedef->args[1];
|
return (*(const side_t **)a)->linedef->args[1] - (*(const side_t **)b)->linedef->args[1];
|
||||||
}
|
}
|
||||||
|
|
||||||
void MapLoader::SpawnPolyobj (int index, int tag, int type)
|
int SetPolyobjDamage(int type, int damage)
|
||||||
|
{
|
||||||
|
int dam;
|
||||||
|
if (type != SMT_PolySpawn)
|
||||||
|
{
|
||||||
|
if (damage == 1)
|
||||||
|
dam = 3;
|
||||||
|
else if (damage > 1)
|
||||||
|
dam = TELEFRAG_DAMAGE;
|
||||||
|
else if (damage < 0)
|
||||||
|
dam = abs(damage);
|
||||||
|
}
|
||||||
|
return (type != SMT_PolySpawn) ? dam : 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
void MapLoader::SpawnPolyobj (int index, int tag, int type, int damage)
|
||||||
{
|
{
|
||||||
unsigned int ii;
|
unsigned int ii;
|
||||||
int i;
|
int i;
|
||||||
|
@ -181,8 +196,9 @@ void MapLoader::SpawnPolyobj (int index, int tag, int type)
|
||||||
sd->linedef->args[0] = 0;
|
sd->linedef->args[0] = 0;
|
||||||
IterFindPolySides(&Level->Polyobjects[index], sd);
|
IterFindPolySides(&Level->Polyobjects[index], sd);
|
||||||
po->MirrorNum = sd->linedef->args[1];
|
po->MirrorNum = sd->linedef->args[1];
|
||||||
po->crush = (type != SMT_PolySpawn) ? 3 : 0;
|
po->crush = SetPolyobjDamage(type,damage);
|
||||||
po->bHurtOnTouch = (type == SMT_PolySpawnHurt);
|
po->bHurtOnTouch = (type == SMT_PolySpawnHurt);
|
||||||
|
|
||||||
po->tag = tag;
|
po->tag = tag;
|
||||||
po->seqType = sd->linedef->args[2];
|
po->seqType = sd->linedef->args[2];
|
||||||
if (po->seqType < 0 || po->seqType > (MAX_SNDSEQS - 1))
|
if (po->seqType < 0 || po->seqType > (MAX_SNDSEQS - 1))
|
||||||
|
@ -222,7 +238,7 @@ void MapLoader::SpawnPolyobj (int index, int tag, int type)
|
||||||
qsort(&po->Sidedefs[0], po->Sidedefs.Size(), sizeof(po->Sidedefs[0]), posicmp);
|
qsort(&po->Sidedefs[0], po->Sidedefs.Size(), sizeof(po->Sidedefs[0]), posicmp);
|
||||||
if (po->Sidedefs.Size() > 0)
|
if (po->Sidedefs.Size() > 0)
|
||||||
{
|
{
|
||||||
po->crush = (type != SMT_PolySpawn) ? 3 : 0;
|
po->crush = SetPolyobjDamage(type,damage);
|
||||||
po->bHurtOnTouch = (type == SMT_PolySpawnHurt);
|
po->bHurtOnTouch = (type == SMT_PolySpawnHurt);
|
||||||
po->tag = tag;
|
po->tag = tag;
|
||||||
po->seqType = po->Sidedefs[0]->linedef->args[3];
|
po->seqType = po->Sidedefs[0]->linedef->args[3];
|
||||||
|
@ -359,13 +375,13 @@ void MapLoader::PO_Init (void)
|
||||||
// Find the startSpot points, and spawn each polyobj
|
// Find the startSpot points, and spawn each polyobj
|
||||||
for (int i=polythings.Size()-1; i >= 0; i--)
|
for (int i=polythings.Size()-1; i >= 0; i--)
|
||||||
{
|
{
|
||||||
// 9301 (3001) = no crush, 9302 (3002) = crushing, 9303 = hurting touch
|
// 9301 (3001) = no crush, 9302 (3002) = crushing, 9303 = hurting touch, Health = crusher/hurter damage
|
||||||
int type = polythings[i]->info->Special;
|
int type = polythings[i]->info->Special;
|
||||||
if (type >= SMT_PolySpawn && type <= SMT_PolySpawnHurt)
|
if (type >= SMT_PolySpawn && type <= SMT_PolySpawnHurt)
|
||||||
{
|
{
|
||||||
// Polyobj StartSpot Pt.
|
// Polyobj StartSpot Pt.
|
||||||
Level->Polyobjects[polyIndex].StartSpot.pos = polythings[i]->pos.XY();
|
Level->Polyobjects[polyIndex].StartSpot.pos = polythings[i]->pos.XY();
|
||||||
SpawnPolyobj(polyIndex, polythings[i]->angle, type);
|
SpawnPolyobj(polyIndex, polythings[i]->angle, type, polythings[i]->Health);
|
||||||
polyIndex++;
|
polyIndex++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -387,7 +387,7 @@ FState *FStateLabelStorage::GetState(int pos, PClassActor *cls, bool exact)
|
||||||
|
|
||||||
//==========================================================================
|
//==========================================================================
|
||||||
//
|
//
|
||||||
// State label conversion function for scripts
|
// State label conversion functions for scripts
|
||||||
//
|
//
|
||||||
//==========================================================================
|
//==========================================================================
|
||||||
|
|
||||||
|
@ -395,7 +395,7 @@ DEFINE_ACTION_FUNCTION(AActor, FindState)
|
||||||
{
|
{
|
||||||
PARAM_SELF_PROLOGUE(AActor);
|
PARAM_SELF_PROLOGUE(AActor);
|
||||||
PARAM_INT(newstate);
|
PARAM_INT(newstate);
|
||||||
PARAM_BOOL(exact)
|
PARAM_BOOL(exact);
|
||||||
ACTION_RETURN_STATE(StateLabels.GetState(newstate, self->GetClass(), exact));
|
ACTION_RETURN_STATE(StateLabels.GetState(newstate, self->GetClass(), exact));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -407,6 +407,15 @@ DEFINE_ACTION_FUNCTION(AActor, ResolveState)
|
||||||
ACTION_RETURN_STATE(newstate);
|
ACTION_RETURN_STATE(newstate);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// find state by string instead of label
|
||||||
|
DEFINE_ACTION_FUNCTION(AActor, FindStateByString)
|
||||||
|
{
|
||||||
|
PARAM_SELF_PROLOGUE(AActor);
|
||||||
|
PARAM_STRING(newstate);
|
||||||
|
PARAM_BOOL(exact);
|
||||||
|
ACTION_RETURN_STATE(self->GetClass()->FindStateByString(newstate.GetChars(), exact));
|
||||||
|
}
|
||||||
|
|
||||||
//==========================================================================
|
//==========================================================================
|
||||||
//
|
//
|
||||||
// Search one list of state definitions for the given name
|
// Search one list of state definitions for the given name
|
||||||
|
|
|
@ -498,6 +498,8 @@ enum ActorRenderFlag2
|
||||||
RF2_ONLYVISIBLEINMIRRORS = 0x0002, // [Nash] only renders in mirrors
|
RF2_ONLYVISIBLEINMIRRORS = 0x0002, // [Nash] only renders in mirrors
|
||||||
RF2_BILLBOARDFACECAMERA = 0x0004, // Sprite billboard face camera (override gl_billboard_faces_camera)
|
RF2_BILLBOARDFACECAMERA = 0x0004, // Sprite billboard face camera (override gl_billboard_faces_camera)
|
||||||
RF2_BILLBOARDNOFACECAMERA = 0x0008, // Sprite billboard face camera angle (override gl_billboard_faces_camera)
|
RF2_BILLBOARDNOFACECAMERA = 0x0008, // Sprite billboard face camera angle (override gl_billboard_faces_camera)
|
||||||
|
RF2_FLIPSPRITEOFFSETX = 0x0010,
|
||||||
|
RF2_FLIPSPRITEOFFSETY = 0x0020,
|
||||||
};
|
};
|
||||||
|
|
||||||
// This translucency value produces the closest match to Heretic's TINTTAB.
|
// This translucency value produces the closest match to Heretic's TINTTAB.
|
||||||
|
@ -690,6 +692,9 @@ enum EViewPosFlags // [MC] Flags for SetViewPos.
|
||||||
{
|
{
|
||||||
VPSF_ABSOLUTEOFFSET = 1 << 1, // Don't include angles.
|
VPSF_ABSOLUTEOFFSET = 1 << 1, // Don't include angles.
|
||||||
VPSF_ABSOLUTEPOS = 1 << 2, // Use absolute position.
|
VPSF_ABSOLUTEPOS = 1 << 2, // Use absolute position.
|
||||||
|
VPSF_ALLOWOUTOFBOUNDS = 1 << 3, // Allow viewpoint to go out of bounds (hardware renderer only).
|
||||||
|
VPSF_ORTHOGRAPHIC = 1 << 4, // Use orthographic projection.
|
||||||
|
VPSF_ISOMETRICSPRITES = 1 << 5, // Displace sprites towards camera and don't billboard (drawn from isometric perspective).
|
||||||
};
|
};
|
||||||
|
|
||||||
enum EAnimOverrideFlags
|
enum EAnimOverrideFlags
|
||||||
|
@ -899,6 +904,9 @@ public:
|
||||||
|
|
||||||
// Returns true if this view is considered "local" for the player.
|
// Returns true if this view is considered "local" for the player.
|
||||||
bool CheckLocalView() const;
|
bool CheckLocalView() const;
|
||||||
|
// Allows for enabling/disabling client-side rendering in a way the playsim can't access.
|
||||||
|
void DisableLocalRendering(const unsigned int pNum, const bool disable);
|
||||||
|
bool ShouldRenderLocally() const;
|
||||||
|
|
||||||
// Finds the first item of a particular type.
|
// Finds the first item of a particular type.
|
||||||
AActor *FindInventory (PClassActor *type, bool subclass=false);
|
AActor *FindInventory (PClassActor *type, bool subclass=false);
|
||||||
|
@ -1101,6 +1109,7 @@ public:
|
||||||
|
|
||||||
DAngle SpriteAngle;
|
DAngle SpriteAngle;
|
||||||
DAngle SpriteRotation;
|
DAngle SpriteRotation;
|
||||||
|
DVector2 AutomapOffsets; // Offset the actors' sprite view on the automap by these coordinates.
|
||||||
DRotator Angles;
|
DRotator Angles;
|
||||||
DRotator ViewAngles; // Angle offsets for cameras
|
DRotator ViewAngles; // Angle offsets for cameras
|
||||||
TObjPtr<DViewPosition*> ViewPos; // Position offsets for cameras
|
TObjPtr<DViewPosition*> ViewPos; // Position offsets for cameras
|
||||||
|
@ -1119,6 +1128,7 @@ public:
|
||||||
uint32_t RenderRequired; // current renderer must have this feature set
|
uint32_t RenderRequired; // current renderer must have this feature set
|
||||||
uint32_t RenderHidden; // current renderer must *not* have any of these features
|
uint32_t RenderHidden; // current renderer must *not* have any of these features
|
||||||
|
|
||||||
|
bool NoLocalRender; // DO NOT EXPORT THIS! This is a way to disable rendering such that the playsim cannot access it.
|
||||||
ActorRenderFlags renderflags; // Different rendering flags
|
ActorRenderFlags renderflags; // Different rendering flags
|
||||||
ActorRenderFlags2 renderflags2; // More rendering flags...
|
ActorRenderFlags2 renderflags2; // More rendering flags...
|
||||||
ActorFlags flags;
|
ActorFlags flags;
|
||||||
|
@ -1472,6 +1482,11 @@ public:
|
||||||
result.Roll = PrevAngles.Roll + deltaangle(PrevAngles.Roll, Angles.Roll) * ticFrac;
|
result.Roll = PrevAngles.Roll + deltaangle(PrevAngles.Roll, Angles.Roll) * ticFrac;
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
float GetSpriteOffset(bool y) const
|
||||||
|
{
|
||||||
|
if (y) return (float)(renderflags2 & RF2_FLIPSPRITEOFFSETY ? SpriteOffset.Y : -SpriteOffset.Y);
|
||||||
|
else return (float)(renderflags2 & RF2_FLIPSPRITEOFFSETX ? SpriteOffset.X : -SpriteOffset.X);
|
||||||
|
}
|
||||||
DAngle GetSpriteAngle(DAngle viewangle, double ticFrac)
|
DAngle GetSpriteAngle(DAngle viewangle, double ticFrac)
|
||||||
{
|
{
|
||||||
if (flags7 & MF7_SPRITEANGLE)
|
if (flags7 & MF7_SPRITEANGLE)
|
||||||
|
|
|
@ -1206,7 +1206,7 @@ DEFINE_ACTION_FUNCTION_NATIVE(DVisualThinker, SetTranslation, SetTranslation)
|
||||||
|
|
||||||
static int IsFrozen(DVisualThinker * self)
|
static int IsFrozen(DVisualThinker * self)
|
||||||
{
|
{
|
||||||
return (self->Level->isFrozen() && !(self->PT.flags & SPF_NOTIMEFREEZE));
|
return !!(self->Level->isFrozen() && !(self->PT.flags & SPF_NOTIMEFREEZE));
|
||||||
}
|
}
|
||||||
|
|
||||||
bool DVisualThinker::isFrozen()
|
bool DVisualThinker::isFrozen()
|
||||||
|
@ -1242,6 +1242,14 @@ int DVisualThinker::GetRenderStyle()
|
||||||
return PT.style;
|
return PT.style;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
float DVisualThinker::GetOffset(bool y) const // Needed for the renderer.
|
||||||
|
{
|
||||||
|
if (y)
|
||||||
|
return (float)(bFlipOffsetY ? Offset.Y : -Offset.Y);
|
||||||
|
else
|
||||||
|
return (float)(bFlipOffsetX ? Offset.X : -Offset.X);
|
||||||
|
}
|
||||||
|
|
||||||
void DVisualThinker::Serialize(FSerializer& arc)
|
void DVisualThinker::Serialize(FSerializer& arc)
|
||||||
{
|
{
|
||||||
Super::Serialize(arc);
|
Super::Serialize(arc);
|
||||||
|
@ -1264,6 +1272,8 @@ void DVisualThinker::Serialize(FSerializer& arc)
|
||||||
("flipy", bYFlip)
|
("flipy", bYFlip)
|
||||||
("dontinterpolate", bDontInterpolate)
|
("dontinterpolate", bDontInterpolate)
|
||||||
("addlightlevel", bAddLightLevel)
|
("addlightlevel", bAddLightLevel)
|
||||||
|
("flipoffsetx", bFlipOffsetX)
|
||||||
|
("flipoffsetY", bFlipOffsetY)
|
||||||
("lightlevel", LightLevel)
|
("lightlevel", LightLevel)
|
||||||
("flags", PT.flags);
|
("flags", PT.flags);
|
||||||
|
|
||||||
|
@ -1289,3 +1299,5 @@ DEFINE_FIELD(DVisualThinker, bXFlip);
|
||||||
DEFINE_FIELD(DVisualThinker, bYFlip);
|
DEFINE_FIELD(DVisualThinker, bYFlip);
|
||||||
DEFINE_FIELD(DVisualThinker, bDontInterpolate);
|
DEFINE_FIELD(DVisualThinker, bDontInterpolate);
|
||||||
DEFINE_FIELD(DVisualThinker, bAddLightLevel);
|
DEFINE_FIELD(DVisualThinker, bAddLightLevel);
|
||||||
|
DEFINE_FIELD(DVisualThinker, bFlipOffsetX);
|
||||||
|
DEFINE_FIELD(DVisualThinker, bFlipOffsetY);
|
||||||
|
|
|
@ -166,7 +166,9 @@ public:
|
||||||
FTextureID AnimatedTexture;
|
FTextureID AnimatedTexture;
|
||||||
sector_t *cursector;
|
sector_t *cursector;
|
||||||
|
|
||||||
bool bXFlip,
|
bool bFlipOffsetX,
|
||||||
|
bFlipOffsetY,
|
||||||
|
bXFlip,
|
||||||
bYFlip, // flip the sprite on the x/y axis.
|
bYFlip, // flip the sprite on the x/y axis.
|
||||||
bDontInterpolate, // disable all interpolation
|
bDontInterpolate, // disable all interpolation
|
||||||
bAddLightLevel; // adds sector light level to 'LightLevel'
|
bAddLightLevel; // adds sector light level to 'LightLevel'
|
||||||
|
@ -191,4 +193,5 @@ public:
|
||||||
void UpdateSpriteInfo();
|
void UpdateSpriteInfo();
|
||||||
void Serialize(FSerializer& arc) override;
|
void Serialize(FSerializer& arc) override;
|
||||||
|
|
||||||
};
|
float GetOffset(bool y) const;
|
||||||
|
};
|
|
@ -1823,7 +1823,7 @@ int P_LookForPlayers (AActor *actor, INTBOOL allaround, FLookExParams *params)
|
||||||
if (!(player->mo->flags & MF_SHOOTABLE))
|
if (!(player->mo->flags & MF_SHOOTABLE))
|
||||||
continue; // not shootable (observer or dead)
|
continue; // not shootable (observer or dead)
|
||||||
|
|
||||||
if (!actor->IsHostile(player->mo))
|
if (actor->IsFriend(player->mo))
|
||||||
continue; // same +MF_FRIENDLY, ignore
|
continue; // same +MF_FRIENDLY, ignore
|
||||||
|
|
||||||
if (player->cheats & CF_NOTARGET)
|
if (player->cheats & CF_NOTARGET)
|
||||||
|
@ -1917,7 +1917,7 @@ DEFINE_ACTION_FUNCTION(AActor, A_Look)
|
||||||
targ = NULL;
|
targ = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (targ && targ->player && ((targ->player->cheats & CF_NOTARGET) || !self->IsHostile(targ)))
|
if (targ && targ->player && ((targ->player->cheats & CF_NOTARGET) || !(targ->flags & MF_FRIENDLY)))
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -1931,7 +1931,7 @@ DEFINE_ACTION_FUNCTION(AActor, A_Look)
|
||||||
|
|
||||||
if (targ && (targ->flags & MF_SHOOTABLE))
|
if (targ && (targ->flags & MF_SHOOTABLE))
|
||||||
{
|
{
|
||||||
if (!self->IsHostile (targ)) // be a little more precise!
|
if (self->IsFriend (targ)) // be a little more precise!
|
||||||
{
|
{
|
||||||
// If we find a valid target here, the wandering logic should *not*
|
// If we find a valid target here, the wandering logic should *not*
|
||||||
// be activated! It would cause the seestate to be set twice.
|
// be activated! It would cause the seestate to be set twice.
|
||||||
|
|
|
@ -970,6 +970,44 @@ DEFINE_ACTION_FUNCTION(AActor, CheckLocalView)
|
||||||
ACTION_RETURN_BOOL(self->CheckLocalView());
|
ACTION_RETURN_BOOL(self->CheckLocalView());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void AActor::DisableLocalRendering(const unsigned int pNum, const bool disable)
|
||||||
|
{
|
||||||
|
if (pNum == consoleplayer)
|
||||||
|
NoLocalRender = disable;
|
||||||
|
}
|
||||||
|
|
||||||
|
static void DisableLocalRendering(AActor* const self, const unsigned int pNum, const int disable)
|
||||||
|
{
|
||||||
|
self->DisableLocalRendering(pNum, disable);
|
||||||
|
}
|
||||||
|
|
||||||
|
DEFINE_ACTION_FUNCTION_NATIVE(AActor, DisableLocalRendering, DisableLocalRendering)
|
||||||
|
{
|
||||||
|
PARAM_SELF_PROLOGUE(AActor);
|
||||||
|
PARAM_UINT(pNum);
|
||||||
|
PARAM_INT(disable);
|
||||||
|
|
||||||
|
DisableLocalRendering(self, pNum, disable);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool AActor::ShouldRenderLocally() const
|
||||||
|
{
|
||||||
|
return !NoLocalRender;
|
||||||
|
}
|
||||||
|
|
||||||
|
static int ShouldRenderLocally(const AActor* const self)
|
||||||
|
{
|
||||||
|
return self->ShouldRenderLocally();
|
||||||
|
}
|
||||||
|
|
||||||
|
DEFINE_ACTION_FUNCTION_NATIVE(AActor, ShouldRenderLocally, ShouldRenderLocally)
|
||||||
|
{
|
||||||
|
PARAM_SELF_PROLOGUE(AActor);
|
||||||
|
|
||||||
|
ACTION_RETURN_INT(ShouldRenderLocally(self));
|
||||||
|
}
|
||||||
|
|
||||||
//============================================================================
|
//============================================================================
|
||||||
//
|
//
|
||||||
// AActor :: IsInsideVisibleAngles
|
// AActor :: IsInsideVisibleAngles
|
||||||
|
@ -1049,6 +1087,9 @@ bool AActor::IsVisibleToPlayer() const
|
||||||
// [BB] Safety check. This should never be NULL. Nevertheless, we return true to leave the default ZDoom behavior unaltered.
|
// [BB] Safety check. This should never be NULL. Nevertheless, we return true to leave the default ZDoom behavior unaltered.
|
||||||
if (p == nullptr || p->camera == nullptr )
|
if (p == nullptr || p->camera == nullptr )
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
if (!ShouldRenderLocally())
|
||||||
|
return false;
|
||||||
|
|
||||||
if (VisibleToTeam != 0 && teamplay &&
|
if (VisibleToTeam != 0 && teamplay &&
|
||||||
(signed)(VisibleToTeam-1) != p->userinfo.GetTeam() )
|
(signed)(VisibleToTeam-1) != p->userinfo.GetTeam() )
|
||||||
|
@ -5701,15 +5742,26 @@ AActor *FLevelLocals::SpawnMapThing (FMapThing *mthing, int position)
|
||||||
|
|
||||||
const AActor *info = GetDefaultByType (i);
|
const AActor *info = GetDefaultByType (i);
|
||||||
|
|
||||||
// don't spawn keycards and players in deathmatch
|
// Don't spawn keycards and players in deathmatch.
|
||||||
if (deathmatch && info->flags & MF_NOTDMATCH)
|
if (deathmatch && (info->flags & MF_NOTDMATCH))
|
||||||
return NULL;
|
return nullptr;
|
||||||
|
|
||||||
// don't spawn extra things in coop if so desired
|
// Don't spawn extra things in co-op if desired.
|
||||||
if (multiplayer && !deathmatch && (dmflags2 & DF2_NO_COOP_THING_SPAWN))
|
if (multiplayer && !deathmatch)
|
||||||
{
|
{
|
||||||
if ((mthing->flags & (MTF_DEATHMATCH|MTF_SINGLE)) == MTF_DEATHMATCH)
|
// Don't spawn DM-only things in co-op.
|
||||||
return NULL;
|
if ((dmflags2 & DF2_NO_COOP_THING_SPAWN) && (mthing->flags & (MTF_DEATHMATCH|MTF_SINGLE)) == MTF_DEATHMATCH)
|
||||||
|
return nullptr;
|
||||||
|
// Having co-op only functionality is a bit odd, but you never know.
|
||||||
|
if (!mthing->special && !mthing->thingid && (mthing->flags & (MTF_COOPERATIVE | MTF_SINGLE)) == MTF_COOPERATIVE)
|
||||||
|
{
|
||||||
|
// Don't spawn co-op only things in general.
|
||||||
|
if (dmflags3 & DF3_NO_COOP_ONLY_THINGS)
|
||||||
|
return nullptr;
|
||||||
|
// Don't spawn co-op only items.
|
||||||
|
if ((dmflags3 & DF3_NO_COOP_ONLY_ITEMS) && i->IsDescendantOf(NAME_Inventory))
|
||||||
|
return nullptr;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// [RH] don't spawn extra weapons in coop if so desired
|
// [RH] don't spawn extra weapons in coop if so desired
|
||||||
|
|
|
@ -25,14 +25,14 @@ inline FRandom pr_shadowaimz("VerticalShadowAim");
|
||||||
//
|
//
|
||||||
//==========================================================================
|
//==========================================================================
|
||||||
|
|
||||||
struct ShadowCheckData
|
struct SightCheckData
|
||||||
{
|
{
|
||||||
AActor* HitShadow;
|
AActor* HitShadow;
|
||||||
};
|
};
|
||||||
|
|
||||||
static ETraceStatus CheckForShadowBlockers(FTraceResults& res, void* userdata)
|
inline ETraceStatus CheckForShadowBlockers(FTraceResults& res, void* userdata)
|
||||||
{
|
{
|
||||||
ShadowCheckData* output = (ShadowCheckData*)userdata;
|
SightCheckData* output = (SightCheckData*)userdata;
|
||||||
if (res.HitType == TRACE_HitActor && res.Actor && (res.Actor->flags9 & MF9_SHADOWBLOCK))
|
if (res.HitType == TRACE_HitActor && res.Actor && (res.Actor->flags9 & MF9_SHADOWBLOCK))
|
||||||
{
|
{
|
||||||
output->HitShadow = res.Actor;
|
output->HitShadow = res.Actor;
|
||||||
|
@ -48,10 +48,10 @@ static ETraceStatus CheckForShadowBlockers(FTraceResults& res, void* userdata)
|
||||||
}
|
}
|
||||||
|
|
||||||
// [inkoalawetrust] Check if an MF9_SHADOWBLOCK actor is standing between t1 and t2.
|
// [inkoalawetrust] Check if an MF9_SHADOWBLOCK actor is standing between t1 and t2.
|
||||||
inline bool P_CheckForShadowBlock(AActor* t1, AActor* t2, DVector3 pos, double& penaltyFactor)
|
inline AActor* P_CheckForShadowBlock(AActor* t1, AActor* t2, DVector3 pos, double& penaltyFactor)
|
||||||
{
|
{
|
||||||
FTraceResults result;
|
FTraceResults result;
|
||||||
ShadowCheckData ShadowCheck;
|
SightCheckData ShadowCheck;
|
||||||
ShadowCheck.HitShadow = nullptr;
|
ShadowCheck.HitShadow = nullptr;
|
||||||
DVector3 dir;
|
DVector3 dir;
|
||||||
double dist;
|
double dist;
|
||||||
|
@ -78,21 +78,21 @@ inline bool P_CheckForShadowBlock(AActor* t1, AActor* t2, DVector3 pos, double&
|
||||||
return ShadowCheck.HitShadow;
|
return ShadowCheck.HitShadow;
|
||||||
}
|
}
|
||||||
|
|
||||||
inline bool AffectedByShadows(AActor* self, AActor* other)
|
inline bool AffectedByShadows(AActor* self)
|
||||||
{
|
{
|
||||||
return (!(self->flags6 & MF6_SEEINVISIBLE) || self->flags9 & MF9_SHADOWAIM);
|
return (!(self->flags6 & MF6_SEEINVISIBLE) || self->flags9 & MF9_SHADOWAIM);
|
||||||
}
|
}
|
||||||
|
|
||||||
inline bool CheckForShadows(AActor* self, AActor* other, DVector3 pos, double& penaltyFactor)
|
inline AActor* CheckForShadows(AActor* self, AActor* other, DVector3 pos, double& penaltyFactor)
|
||||||
{
|
{
|
||||||
return ((other && (other->flags & MF_SHADOW)) || (self->flags9 & MF9_DOSHADOWBLOCK) && P_CheckForShadowBlock(self, other, pos, penaltyFactor));
|
return ((other && (other->flags & MF_SHADOW)) || (self->flags9 & MF9_DOSHADOWBLOCK)) ? P_CheckForShadowBlock(self, other, pos, penaltyFactor) : nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
inline bool PerformShadowChecks(AActor* self, AActor* other, DVector3 pos, double& penaltyFactor)
|
inline AActor* PerformShadowChecks(AActor* self, AActor* other, DVector3 pos, double& penaltyFactor)
|
||||||
{
|
{
|
||||||
if (other != nullptr) penaltyFactor = other->ShadowPenaltyFactor; //Use target penalty factor by default.
|
if (other != nullptr) penaltyFactor = other->ShadowPenaltyFactor; //Use target penalty factor by default.
|
||||||
else penaltyFactor = 1.0;
|
else penaltyFactor = 1.0;
|
||||||
return (AffectedByShadows(self, other) && CheckForShadows(self, other, pos, penaltyFactor));
|
return AffectedByShadows(self) ? CheckForShadows(self, other, pos, penaltyFactor) : nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
//==========================================================================
|
//==========================================================================
|
||||||
|
|
|
@ -162,8 +162,14 @@ sector_t* RenderViewpoint(FRenderViewpoint& mainvp, AActor* camera, IntRect* bou
|
||||||
|
|
||||||
di->Viewpoint.FieldOfView = DAngle::fromDeg(fov); // Set the real FOV for the current scene (it's not necessarily the same as the global setting in r_viewpoint)
|
di->Viewpoint.FieldOfView = DAngle::fromDeg(fov); // Set the real FOV for the current scene (it's not necessarily the same as the global setting in r_viewpoint)
|
||||||
|
|
||||||
|
if(mainview && (camera->ViewPos != NULL) && (camera->ViewPos->Offset.XY().Length() > 0)) r_drawplayersprites = false;
|
||||||
|
else r_drawplayersprites = true; // Restore first-person hands/weapons
|
||||||
// Stereo mode specific perspective projection
|
// Stereo mode specific perspective projection
|
||||||
di->VPUniforms.mProjectionMatrix = eye.GetProjection(fov, ratio, fovratio);
|
float inv_iso_dist = 1.0f;
|
||||||
|
bool iso_ortho = (camera->ViewPos != NULL) && (camera->ViewPos->Flags & VPSF_ORTHOGRAPHIC);
|
||||||
|
if (iso_ortho && (camera->ViewPos->Offset.XY().Length() > 0)) inv_iso_dist = 3.0f/camera->ViewPos->Offset.XY().Length();
|
||||||
|
di->VPUniforms.mProjectionMatrix = eye.GetProjection(fov, ratio, fovratio * inv_iso_dist, iso_ortho);
|
||||||
|
|
||||||
// Stereo mode specific viewpoint adjustment
|
// Stereo mode specific viewpoint adjustment
|
||||||
vp.Pos += eye.GetViewShift(vp.HWAngles.Yaw.Degrees());
|
vp.Pos += eye.GetViewShift(vp.HWAngles.Yaw.Degrees());
|
||||||
di->SetupView(RenderState, vp.Pos.X, vp.Pos.Y, vp.Pos.Z, false, false);
|
di->SetupView(RenderState, vp.Pos.X, vp.Pos.Y, vp.Pos.Z, false, false);
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
//
|
//
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
//
|
//
|
||||||
// Copyright(C) 2002-2016 Christoph Oelckers
|
// Copyright(C) 2002-2016 Christoph Oelckers
|
||||||
|
@ -94,7 +94,7 @@ CUSTOM_CVAR(Int, gl_fuzztype, 0, CVAR_ARCHIVE)
|
||||||
|
|
||||||
//==========================================================================
|
//==========================================================================
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
//==========================================================================
|
//==========================================================================
|
||||||
|
|
||||||
|
@ -103,7 +103,7 @@ void HWSprite::DrawSprite(HWDrawInfo *di, FRenderState &state, bool translucent)
|
||||||
bool additivefog = false;
|
bool additivefog = false;
|
||||||
bool foglayer = false;
|
bool foglayer = false;
|
||||||
int rel = fullbright ? 0 : getExtraLight();
|
int rel = fullbright ? 0 : getExtraLight();
|
||||||
auto &vp = di->Viewpoint;
|
auto &vp = di->Viewpoint;
|
||||||
|
|
||||||
if (translucent)
|
if (translucent)
|
||||||
{
|
{
|
||||||
|
@ -336,23 +336,36 @@ void HWSprite::DrawSprite(HWDrawInfo *di, FRenderState &state, bool translucent)
|
||||||
|
|
||||||
//==========================================================================
|
//==========================================================================
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
//==========================================================================
|
//==========================================================================
|
||||||
|
|
||||||
bool HWSprite::CalculateVertices(HWDrawInfo *di, FVector3 *v, DVector3 *vp)
|
void HandleSpriteOffsets(Matrix3x4 *mat, const FRotator *HW, FVector2 *offset, bool XYBillboard)
|
||||||
{
|
{
|
||||||
const auto &HWAngles = di->Viewpoint.HWAngles;
|
FAngle zero = FAngle::fromDeg(0);
|
||||||
|
FAngle pitch = (XYBillboard) ? HW->Pitch : zero;
|
||||||
|
FAngle yaw = FAngle::fromDeg(270.) - HW->Yaw;
|
||||||
|
|
||||||
|
FQuaternion quat = FQuaternion::FromAngles(yaw, pitch, zero);
|
||||||
|
FVector3 sideVec = quat * FVector3(0, 1, 0);
|
||||||
|
FVector3 upVec = quat * FVector3(0, 0, 1);
|
||||||
|
FVector3 res = sideVec * offset->X + upVec * offset->Y;
|
||||||
|
mat->Translate(res.X, res.Z, res.Y);
|
||||||
|
}
|
||||||
|
|
||||||
|
bool HWSprite::CalculateVertices(HWDrawInfo* di, FVector3* v, DVector3* vp)
|
||||||
|
{
|
||||||
|
FVector3 center = FVector3((x1 + x2) * 0.5, (y1 + y2) * 0.5, (z1 + z2) * 0.5);
|
||||||
|
const auto& HWAngles = di->Viewpoint.HWAngles;
|
||||||
|
Matrix3x4 mat;
|
||||||
if (actor != nullptr && (actor->renderflags & RF_SPRITETYPEMASK) == RF_FLATSPRITE)
|
if (actor != nullptr && (actor->renderflags & RF_SPRITETYPEMASK) == RF_FLATSPRITE)
|
||||||
{
|
{
|
||||||
Matrix3x4 mat;
|
|
||||||
mat.MakeIdentity();
|
|
||||||
|
|
||||||
// [MC] Rotate around the center or offsets given to the sprites.
|
// [MC] Rotate around the center or offsets given to the sprites.
|
||||||
// Counteract any existing rotations, then rotate the angle.
|
// Counteract any existing rotations, then rotate the angle.
|
||||||
// Tilt the actor up or down based on pitch (increase 'somersaults' forward).
|
// Tilt the actor up or down based on pitch (increase 'somersaults' forward).
|
||||||
// Then counteract the roll and DO A BARREL ROLL.
|
// Then counteract the roll and DO A BARREL ROLL.
|
||||||
|
|
||||||
|
mat.MakeIdentity();
|
||||||
FAngle pitch = FAngle::fromDeg(-Angles.Pitch.Degrees());
|
FAngle pitch = FAngle::fromDeg(-Angles.Pitch.Degrees());
|
||||||
pitch.Normalized180();
|
pitch.Normalized180();
|
||||||
|
|
||||||
|
@ -362,12 +375,9 @@ bool HWSprite::CalculateVertices(HWDrawInfo *di, FVector3 *v, DVector3 *vp)
|
||||||
|
|
||||||
if (actor->renderflags & RF_ROLLCENTER)
|
if (actor->renderflags & RF_ROLLCENTER)
|
||||||
{
|
{
|
||||||
float cx = (x1 + x2) * 0.5;
|
mat.Translate(center.X - x, 0, center.Y - y);
|
||||||
float cy = (y1 + y2) * 0.5;
|
|
||||||
|
|
||||||
mat.Translate(cx - x, 0, cy - y);
|
|
||||||
mat.Rotate(0, 1, 0, - Angles.Roll.Degrees());
|
mat.Rotate(0, 1, 0, - Angles.Roll.Degrees());
|
||||||
mat.Translate(-cx, -z, -cy);
|
mat.Translate(-center.X, -z, -center.Y);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -381,7 +391,7 @@ bool HWSprite::CalculateVertices(HWDrawInfo *di, FVector3 *v, DVector3 *vp)
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// [BB] Billboard stuff
|
// [BB] Billboard stuff
|
||||||
const bool drawWithXYBillboard = ((particle && gl_billboard_particles && !(particle->flags & SPF_NO_XY_BILLBOARD)) || (!(actor && actor->renderflags & RF_FORCEYBILLBOARD)
|
const bool drawWithXYBillboard = ((particle && gl_billboard_particles && !(particle->flags & SPF_NO_XY_BILLBOARD)) || (!(actor && actor->renderflags & RF_FORCEYBILLBOARD)
|
||||||
//&& di->mViewActor != nullptr
|
//&& di->mViewActor != nullptr
|
||||||
|
@ -393,51 +403,45 @@ bool HWSprite::CalculateVertices(HWDrawInfo *di, FVector3 *v, DVector3 *vp)
|
||||||
|
|
||||||
// [Nash] has +ROLLSPRITE
|
// [Nash] has +ROLLSPRITE
|
||||||
const bool drawRollSpriteActor = (actor != nullptr && actor->renderflags & RF_ROLLSPRITE);
|
const bool drawRollSpriteActor = (actor != nullptr && actor->renderflags & RF_ROLLSPRITE);
|
||||||
|
|
||||||
const bool drawRollParticle = (particle != nullptr && particle->flags & SPF_ROLL);
|
const bool drawRollParticle = (particle != nullptr && particle->flags & SPF_ROLL);
|
||||||
|
const bool doRoll = (drawRollSpriteActor || drawRollParticle);
|
||||||
|
|
||||||
// [fgsfds] check sprite type mask
|
// [fgsfds] check sprite type mask
|
||||||
uint32_t spritetype = (uint32_t)-1;
|
uint32_t spritetype = (uint32_t)-1;
|
||||||
if (actor != nullptr) spritetype = actor->renderflags & RF_SPRITETYPEMASK;
|
if (actor != nullptr) spritetype = actor->renderflags & RF_SPRITETYPEMASK;
|
||||||
|
|
||||||
// [Nash] is a flat sprite
|
// [Nash] is a flat sprite
|
||||||
const bool isFlatSprite = (actor != nullptr) && (spritetype == RF_WALLSPRITE);
|
const bool isWallSprite = (actor != nullptr) && (spritetype == RF_WALLSPRITE);
|
||||||
const bool useOffsets = (actor != nullptr) && !(actor->renderflags & RF_ROLLCENTER);
|
const bool useOffsets = (actor != nullptr) && !(actor->renderflags & RF_ROLLCENTER);
|
||||||
|
|
||||||
|
FVector2 offset = FVector2( offx, offy );
|
||||||
|
|
||||||
|
// Account for +ROLLCENTER flag. Takes the embedded image offsets and adds them in with SpriteOffsets.
|
||||||
|
if (drawRollSpriteActor && useOffsets)
|
||||||
|
{
|
||||||
|
offset.X += center.X - x;
|
||||||
|
offset.Y += center.Z - z;
|
||||||
|
}
|
||||||
|
|
||||||
// [Nash] check for special sprite drawing modes
|
// [Nash] check for special sprite drawing modes
|
||||||
if (drawWithXYBillboard || drawBillboardFacingCamera || drawRollSpriteActor || drawRollParticle || isFlatSprite)
|
if (drawWithXYBillboard || isWallSprite)
|
||||||
{
|
{
|
||||||
// Compute center of sprite
|
// Compute center of sprite
|
||||||
float xcenter = (x1 + x2)*0.5;
|
|
||||||
float ycenter = (y1 + y2)*0.5;
|
|
||||||
float zcenter = (z1 + z2)*0.5;
|
|
||||||
float xx = -xcenter + x;
|
|
||||||
float zz = -zcenter + z;
|
|
||||||
float yy = -ycenter + y;
|
|
||||||
Matrix3x4 mat;
|
|
||||||
mat.MakeIdentity();
|
mat.MakeIdentity();
|
||||||
mat.Translate(xcenter, zcenter, ycenter); // move to sprite center
|
mat.Translate(center.X, center.Z, center.Y); // move to sprite center
|
||||||
|
|
||||||
// [MC] Sprite offsets. These must be calculated separately in their own matrix,
|
|
||||||
// otherwise "face sprites" would cause some issues whenever enabled. We don't
|
// [MC] Sprite offsets.
|
||||||
// want those calculations here. Credit to PhantomBeta for this.
|
if (!offset.isZero())
|
||||||
if (offx || offy)
|
HandleSpriteOffsets(&mat, &HWAngles, &offset, true);
|
||||||
{
|
|
||||||
FQuaternion quat = FQuaternion::FromAngles(FAngle::fromDeg(270) - di->Viewpoint.HWAngles.Yaw, di->Viewpoint.HWAngles.Pitch, FAngle::fromDeg(0));
|
|
||||||
FVector3 sideVec = quat * FVector3(0, 1, 0);
|
|
||||||
FVector3 upVec = quat * FVector3(0, 0, 1);
|
|
||||||
FVector3 res = sideVec * -offx + upVec * -offy;
|
|
||||||
mat.Translate(res.X, res.Z, res.Y);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Order of rotations matters. Perform yaw rotation (Y, face camera) before pitch (X, tilt up/down).
|
// Order of rotations matters. Perform yaw rotation (Y, face camera) before pitch (X, tilt up/down).
|
||||||
if (drawBillboardFacingCamera && !isFlatSprite)
|
if (drawBillboardFacingCamera && !isWallSprite)
|
||||||
{
|
{
|
||||||
// [CMB] Rotate relative to camera XY position, not just camera direction,
|
// [CMB] Rotate relative to camera XY position, not just camera direction,
|
||||||
// which is nicer in VR
|
// which is nicer in VR
|
||||||
float xrel = xcenter - vp->X;
|
float xrel = center.X - vp->X;
|
||||||
float yrel = ycenter - vp->Y;
|
float yrel = center.Y - vp->Y;
|
||||||
float absAngleDeg = atan2(-yrel, xrel) * (180 / M_PI);
|
float absAngleDeg = atan2(-yrel, xrel) * (180 / M_PI);
|
||||||
float counterRotationDeg = 270. - HWAngles.Yaw.Degrees(); // counteracts existing sprite rotation
|
float counterRotationDeg = 270. - HWAngles.Yaw.Degrees(); // counteracts existing sprite rotation
|
||||||
float relAngleDeg = counterRotationDeg + absAngleDeg;
|
float relAngleDeg = counterRotationDeg + absAngleDeg;
|
||||||
|
@ -446,32 +450,27 @@ bool HWSprite::CalculateVertices(HWDrawInfo *di, FVector3 *v, DVector3 *vp)
|
||||||
}
|
}
|
||||||
|
|
||||||
// [fgsfds] calculate yaw vectors
|
// [fgsfds] calculate yaw vectors
|
||||||
float rollDegrees = 0;
|
float rollDegrees = doRoll ? Angles.Roll.Degrees() : 0;
|
||||||
float angleRad = (FAngle::fromDeg(270.) - HWAngles.Yaw).Radians();
|
float angleRad = (FAngle::fromDeg(270.) - HWAngles.Yaw).Radians();
|
||||||
if (actor || drawRollParticle) rollDegrees = Angles.Roll.Degrees();
|
|
||||||
|
|
||||||
// [fgsfds] Rotate the sprite about the sight vector (roll)
|
// [fgsfds] Rotate the sprite about the sight vector (roll)
|
||||||
if (spritetype == RF_WALLSPRITE)
|
if (isWallSprite)
|
||||||
{
|
{
|
||||||
float yawvecX = Angles.Yaw.Cos();
|
float yawvecX = Angles.Yaw.Cos();
|
||||||
float yawvecY = Angles.Yaw.Sin();
|
float yawvecY = Angles.Yaw.Sin();
|
||||||
mat.Rotate(0, 1, 0, 0);
|
mat.Rotate(0, 1, 0, 0);
|
||||||
if (drawRollSpriteActor)
|
if (drawRollSpriteActor)
|
||||||
{
|
{
|
||||||
if (useOffsets) mat.Translate(xx, zz, yy);
|
|
||||||
mat.Rotate(yawvecX, 0, yawvecY, rollDegrees);
|
mat.Rotate(yawvecX, 0, yawvecY, rollDegrees);
|
||||||
if (useOffsets) mat.Translate(-xx, -zz, -yy);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (drawRollSpriteActor || drawRollParticle)
|
else if (doRoll)
|
||||||
{
|
{
|
||||||
if (useOffsets) mat.Translate(xx, zz, yy);
|
|
||||||
if (drawWithXYBillboard)
|
if (drawWithXYBillboard)
|
||||||
{
|
{
|
||||||
mat.Rotate(-sin(angleRad), 0, cos(angleRad), -HWAngles.Pitch.Degrees());
|
mat.Rotate(-sin(angleRad), 0, cos(angleRad), -HWAngles.Pitch.Degrees());
|
||||||
}
|
}
|
||||||
mat.Rotate(cos(angleRad), 0, sin(angleRad), rollDegrees);
|
mat.Rotate(cos(angleRad), 0, sin(angleRad), rollDegrees);
|
||||||
if (useOffsets) mat.Translate(-xx, -zz, -yy);
|
|
||||||
}
|
}
|
||||||
else if (drawWithXYBillboard)
|
else if (drawWithXYBillboard)
|
||||||
{
|
{
|
||||||
|
@ -481,8 +480,8 @@ bool HWSprite::CalculateVertices(HWDrawInfo *di, FVector3 *v, DVector3 *vp)
|
||||||
mat.Rotate(-sin(angleRad), 0, cos(angleRad), -HWAngles.Pitch.Degrees());
|
mat.Rotate(-sin(angleRad), 0, cos(angleRad), -HWAngles.Pitch.Degrees());
|
||||||
}
|
}
|
||||||
|
|
||||||
mat.Translate(-xcenter, -zcenter, -ycenter); // retreat from sprite center
|
mat.Translate(-center.X, -center.Z, -center.Y); // retreat from sprite center
|
||||||
|
|
||||||
v[0] = mat * FVector3(x1, z1, y1);
|
v[0] = mat * FVector3(x1, z1, y1);
|
||||||
v[1] = mat * FVector3(x2, z1, y2);
|
v[1] = mat * FVector3(x2, z1, y2);
|
||||||
v[2] = mat * FVector3(x1, z2, y1);
|
v[2] = mat * FVector3(x1, z2, y1);
|
||||||
|
@ -490,17 +489,55 @@ bool HWSprite::CalculateVertices(HWDrawInfo *di, FVector3 *v, DVector3 *vp)
|
||||||
}
|
}
|
||||||
else // traditional "Y" billboard mode
|
else // traditional "Y" billboard mode
|
||||||
{
|
{
|
||||||
v[0] = FVector3(x1, z1, y1);
|
if (doRoll || !offset.isZero() || ((di->Viewpoint.camera->ViewPos != NULL) && (di->Viewpoint.camera->ViewPos->Flags & VPSF_ISOMETRICSPRITES)))
|
||||||
v[1] = FVector3(x2, z1, y2);
|
{
|
||||||
v[2] = FVector3(x1, z2, y1);
|
mat.MakeIdentity();
|
||||||
v[3] = FVector3(x2, z2, y2);
|
|
||||||
|
if (!offset.isZero())
|
||||||
|
HandleSpriteOffsets(&mat, &HWAngles, &offset, false);
|
||||||
|
|
||||||
|
if (doRoll)
|
||||||
|
{
|
||||||
|
// Compute center of sprite
|
||||||
|
float angleRad = (FAngle::fromDeg(270.) - HWAngles.Yaw).Radians();
|
||||||
|
float rollDegrees = Angles.Roll.Degrees();
|
||||||
|
|
||||||
|
mat.Translate(center.X, center.Z, center.Y);
|
||||||
|
mat.Rotate(cos(angleRad), 0, sin(angleRad), rollDegrees);
|
||||||
|
mat.Translate(-center.X, -center.Z, -center.Y);
|
||||||
|
}
|
||||||
|
|
||||||
|
if ((di->Viewpoint.camera->ViewPos != NULL) && (di->Viewpoint.camera->ViewPos->Flags & VPSF_ISOMETRICSPRITES))
|
||||||
|
{
|
||||||
|
float angleRad = (FAngle::fromDeg(270.) - HWAngles.Yaw).Radians();
|
||||||
|
mat.Translate(center.X, center.Z, center.Y);
|
||||||
|
mat.Translate(0.0, z2 - center.Z, 0.0);
|
||||||
|
mat.Rotate(-sin(angleRad), 0, cos(angleRad), -HWAngles.Pitch.Degrees());
|
||||||
|
mat.Translate(0.0, center.Z - z2, 0.0);
|
||||||
|
mat.Translate(-center.X, -center.Z, -center.Y);
|
||||||
|
}
|
||||||
|
|
||||||
|
v[0] = mat * FVector3(x1, z1, y1);
|
||||||
|
v[1] = mat * FVector3(x2, z1, y2);
|
||||||
|
v[2] = mat * FVector3(x1, z2, y1);
|
||||||
|
v[3] = mat * FVector3(x2, z2, y2);
|
||||||
|
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
v[0] = FVector3(x1, z1, y1);
|
||||||
|
v[1] = FVector3(x2, z1, y2);
|
||||||
|
v[2] = FVector3(x1, z2, y1);
|
||||||
|
v[3] = FVector3(x2, z2, y2);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
//==========================================================================
|
//==========================================================================
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
//==========================================================================
|
//==========================================================================
|
||||||
|
|
||||||
|
@ -525,7 +562,7 @@ inline void HWSprite::PutSprite(HWDrawInfo *di, bool translucent)
|
||||||
|
|
||||||
//==========================================================================
|
//==========================================================================
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
//==========================================================================
|
//==========================================================================
|
||||||
|
|
||||||
|
@ -550,7 +587,7 @@ void HWSprite::CreateVertices(HWDrawInfo *di)
|
||||||
|
|
||||||
//==========================================================================
|
//==========================================================================
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
//==========================================================================
|
//==========================================================================
|
||||||
|
|
||||||
|
@ -589,7 +626,7 @@ void HWSprite::SplitSprite(HWDrawInfo *di, sector_t * frontsector, bool transluc
|
||||||
}
|
}
|
||||||
|
|
||||||
z1=copySprite.z2=lightbottom;
|
z1=copySprite.z2=lightbottom;
|
||||||
vt=copySprite.vb=copySprite.vt+
|
vt=copySprite.vb=copySprite.vt+
|
||||||
(lightbottom-copySprite.z1)*(copySprite.vb-copySprite.vt)/(z2-copySprite.z1);
|
(lightbottom-copySprite.z1)*(copySprite.vb-copySprite.vt)/(z2-copySprite.z1);
|
||||||
copySprite.PutSprite(di, translucent);
|
copySprite.PutSprite(di, translucent);
|
||||||
put=true;
|
put=true;
|
||||||
|
@ -599,7 +636,7 @@ void HWSprite::SplitSprite(HWDrawInfo *di, sector_t * frontsector, bool transluc
|
||||||
|
|
||||||
//==========================================================================
|
//==========================================================================
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
//==========================================================================
|
//==========================================================================
|
||||||
|
|
||||||
|
@ -684,7 +721,7 @@ void HWSprite::PerformSpriteClipAdjustment(AActor *thing, const DVector2 &thingp
|
||||||
z1 -= difft;
|
z1 -= difft;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (diffb <= (0 - (float)gl_sclipthreshold)) // such a large displacement can't be correct!
|
if (diffb <= (0 - (float)gl_sclipthreshold)) // such a large displacement can't be correct!
|
||||||
{
|
{
|
||||||
// for living monsters standing on the floor allow a little more.
|
// for living monsters standing on the floor allow a little more.
|
||||||
if (!(thing->flags3&MF3_ISMONSTER) || (thing->flags&MF_NOGRAVITY) || (thing->flags&MF_CORPSE) || diffb < (-1.8*(float)gl_sclipthreshold))
|
if (!(thing->flags3&MF3_ISMONSTER) || (thing->flags&MF_NOGRAVITY) || (thing->flags&MF_CORPSE) || diffb < (-1.8*(float)gl_sclipthreshold))
|
||||||
|
@ -699,7 +736,7 @@ void HWSprite::PerformSpriteClipAdjustment(AActor *thing, const DVector2 &thingp
|
||||||
|
|
||||||
//==========================================================================
|
//==========================================================================
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
//==========================================================================
|
//==========================================================================
|
||||||
|
|
||||||
|
@ -778,7 +815,7 @@ void HWSprite::Process(HWDrawInfo *di, AActor* thing, sector_t * sector, area_t
|
||||||
if (thruportal == 1) vieworigin += di->Level->Displacements.getOffset(viewmaster->Sector->PortalGroup, sector->PortalGroup);
|
if (thruportal == 1) vieworigin += di->Level->Displacements.getOffset(viewmaster->Sector->PortalGroup, sector->PortalGroup);
|
||||||
if (fabs(vieworigin.X - vp.ActorPos.X) < 2 && fabs(vieworigin.Y - vp.ActorPos.Y) < 2) return;
|
if (fabs(vieworigin.X - vp.ActorPos.X) < 2 && fabs(vieworigin.Y - vp.ActorPos.Y) < 2) return;
|
||||||
|
|
||||||
// Necessary in order to prevent sprite pop-ins with viewpos and models.
|
// Necessary in order to prevent sprite pop-ins with viewpos and models.
|
||||||
auto* sec = viewmaster->Sector;
|
auto* sec = viewmaster->Sector;
|
||||||
if (sec && !sec->PortalBlocksMovement(sector_t::ceiling))
|
if (sec && !sec->PortalBlocksMovement(sector_t::ceiling))
|
||||||
{
|
{
|
||||||
|
@ -873,6 +910,7 @@ void HWSprite::Process(HWDrawInfo *di, AActor* thing, sector_t * sector, area_t
|
||||||
{
|
{
|
||||||
bool mirror = false;
|
bool mirror = false;
|
||||||
DAngle ang = (thingpos - vp.Pos).Angle();
|
DAngle ang = (thingpos - vp.Pos).Angle();
|
||||||
|
if((di->Viewpoint.camera->ViewPos != NULL) && (di->Viewpoint.camera->ViewPos->Flags & VPSF_ISOMETRICSPRITES)) ang = vp.Angles.Yaw;
|
||||||
FTextureID patch;
|
FTextureID patch;
|
||||||
// [ZZ] add direct picnum override
|
// [ZZ] add direct picnum override
|
||||||
if (isPicnumOverride)
|
if (isPicnumOverride)
|
||||||
|
@ -934,8 +972,8 @@ void HWSprite::Process(HWDrawInfo *di, AActor* thing, sector_t * sector, area_t
|
||||||
if (!tex || !tex->isValid()) return;
|
if (!tex || !tex->isValid()) return;
|
||||||
auto& spi = tex->GetSpritePositioning(type == RF_FACESPRITE);
|
auto& spi = tex->GetSpritePositioning(type == RF_FACESPRITE);
|
||||||
|
|
||||||
offx = (float)thing->SpriteOffset.X;
|
offx = (float)thing->GetSpriteOffset(false);
|
||||||
offy = (float)thing->SpriteOffset.Y;
|
offy = (float)thing->GetSpriteOffset(true);
|
||||||
|
|
||||||
vt = spi.GetSpriteVT();
|
vt = spi.GetSpriteVT();
|
||||||
vb = spi.GetSpriteVB();
|
vb = spi.GetSpriteVB();
|
||||||
|
@ -992,6 +1030,20 @@ void HWSprite::Process(HWDrawInfo *di, AActor* thing, sector_t * sector, area_t
|
||||||
x2 = x - viewvecY*rightfac;
|
x2 = x - viewvecY*rightfac;
|
||||||
y1 = y + viewvecX*leftfac;
|
y1 = y + viewvecX*leftfac;
|
||||||
y2 = y + viewvecX*rightfac;
|
y2 = y + viewvecX*rightfac;
|
||||||
|
if((di->Viewpoint.camera->ViewPos != NULL) && (di->Viewpoint.camera->ViewPos->Flags & VPSF_ISOMETRICSPRITES)) // If sprites are drawn from an isometric perspective
|
||||||
|
{
|
||||||
|
float signX = 1.0;
|
||||||
|
float signY = 1.0;
|
||||||
|
if(viewvecX < 0) signX = -1.0;
|
||||||
|
if(viewvecY < 0) signY = -1.0;
|
||||||
|
if(viewvecX == 0) signX = 0.0;
|
||||||
|
if(viewvecY == 0) signY = 0.0;
|
||||||
|
|
||||||
|
x1 -= signX * thing->radius;
|
||||||
|
x2 -= signX * thing->radius;
|
||||||
|
y1 -= signY * thing->radius;
|
||||||
|
y2 -= signY * thing->radius;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case RF_FLATSPRITE:
|
case RF_FLATSPRITE:
|
||||||
|
@ -1032,6 +1084,7 @@ void HWSprite::Process(HWDrawInfo *di, AActor* thing, sector_t * sector, area_t
|
||||||
}
|
}
|
||||||
|
|
||||||
depth = (float)((x - vp.Pos.X) * vp.TanCos + (y - vp.Pos.Y) * vp.TanSin);
|
depth = (float)((x - vp.Pos.X) * vp.TanCos + (y - vp.Pos.Y) * vp.TanSin);
|
||||||
|
if(((di->Viewpoint.camera->ViewPos != NULL) && (di->Viewpoint.camera->ViewPos->Flags & VPSF_ISOMETRICSPRITES))) depth = depth * vp.PitchCos - vp.PitchSin * z2; // Helps with stacking actors with small xy offsets
|
||||||
if (isSpriteShadow) depth += 1.f/65536.f; // always sort shadows behind the sprite.
|
if (isSpriteShadow) depth += 1.f/65536.f; // always sort shadows behind the sprite.
|
||||||
|
|
||||||
// light calculation
|
// light calculation
|
||||||
|
@ -1252,7 +1305,6 @@ void HWSprite::Process(HWDrawInfo *di, AActor* thing, sector_t * sector, area_t
|
||||||
{
|
{
|
||||||
lightlist = nullptr;
|
lightlist = nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
PutSprite(di, hw_styleflags != STYLEHW_Solid);
|
PutSprite(di, hw_styleflags != STYLEHW_Solid);
|
||||||
rendered_sprites++;
|
rendered_sprites++;
|
||||||
}
|
}
|
||||||
|
@ -1260,7 +1312,7 @@ void HWSprite::Process(HWDrawInfo *di, AActor* thing, sector_t * sector, area_t
|
||||||
|
|
||||||
//==========================================================================
|
//==========================================================================
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
//==========================================================================
|
//==========================================================================
|
||||||
|
|
||||||
|
@ -1286,7 +1338,7 @@ void HWSprite::ProcessParticle(HWDrawInfo *di, particle_t *particle, sector_t *s
|
||||||
this->particle = particle;
|
this->particle = particle;
|
||||||
fullbright = particle->flags & SPF_FULLBRIGHT;
|
fullbright = particle->flags & SPF_FULLBRIGHT;
|
||||||
|
|
||||||
if (di->isFullbrightScene())
|
if (di->isFullbrightScene())
|
||||||
{
|
{
|
||||||
Colormap.Clear();
|
Colormap.Clear();
|
||||||
}
|
}
|
||||||
|
@ -1345,7 +1397,7 @@ void HWSprite::ProcessParticle(HWDrawInfo *di, particle_t *particle, sector_t *s
|
||||||
{
|
{
|
||||||
bool has_texture = particle->texture.isValid();
|
bool has_texture = particle->texture.isValid();
|
||||||
bool custom_animated_texture = (particle->flags & SPF_LOCAL_ANIM) && particle->animData.ok;
|
bool custom_animated_texture = (particle->flags & SPF_LOCAL_ANIM) && particle->animData.ok;
|
||||||
|
|
||||||
int particle_style = has_texture ? 2 : gl_particles_style; // Treat custom texture the same as smooth particles
|
int particle_style = has_texture ? 2 : gl_particles_style; // Treat custom texture the same as smooth particles
|
||||||
|
|
||||||
// [BB] Load the texture for round or smooth particles
|
// [BB] Load the texture for round or smooth particles
|
||||||
|
@ -1404,7 +1456,7 @@ void HWSprite::ProcessParticle(HWDrawInfo *di, particle_t *particle, sector_t *s
|
||||||
float rvf = (particle->RollVel) * timefrac;
|
float rvf = (particle->RollVel) * timefrac;
|
||||||
Angles.Roll = TAngle<double>::fromDeg(particle->Roll + rvf);
|
Angles.Roll = TAngle<double>::fromDeg(particle->Roll + rvf);
|
||||||
}
|
}
|
||||||
|
|
||||||
float factor;
|
float factor;
|
||||||
if (particle_style == 1) factor = 1.3f / 7.f;
|
if (particle_style == 1) factor = 1.3f / 7.f;
|
||||||
else if (particle_style == 2) factor = 2.5f / 7.f;
|
else if (particle_style == 2) factor = 2.5f / 7.f;
|
||||||
|
@ -1422,7 +1474,7 @@ void HWSprite::ProcessParticle(HWDrawInfo *di, particle_t *particle, sector_t *s
|
||||||
z2=z+scalefac;
|
z2=z+scalefac;
|
||||||
|
|
||||||
depth = (float)((x - vp.Pos.X) * vp.TanCos + (y - vp.Pos.Y) * vp.TanSin);
|
depth = (float)((x - vp.Pos.X) * vp.TanCos + (y - vp.Pos.Y) * vp.TanSin);
|
||||||
|
|
||||||
// [BB] Translucent particles have to be rendered without the alpha test.
|
// [BB] Translucent particles have to be rendered without the alpha test.
|
||||||
if (particle_style != 2 && trans>=1.0f-FLT_EPSILON) hw_styleflags = STYLEHW_Solid;
|
if (particle_style != 2 && trans>=1.0f-FLT_EPSILON) hw_styleflags = STYLEHW_Solid;
|
||||||
else hw_styleflags = STYLEHW_NoAlphaTest;
|
else hw_styleflags = STYLEHW_NoAlphaTest;
|
||||||
|
@ -1438,7 +1490,7 @@ void HWSprite::ProcessParticle(HWDrawInfo *di, particle_t *particle, sector_t *s
|
||||||
}
|
}
|
||||||
|
|
||||||
// [MC] VisualThinkers are to be rendered akin to actor sprites. The reason this whole system
|
// [MC] VisualThinkers are to be rendered akin to actor sprites. The reason this whole system
|
||||||
// is hitching a ride on particle_t is because of the large number of checks with
|
// is hitching a ride on particle_t is because of the large number of checks with
|
||||||
// HWSprite elsewhere in the draw lists.
|
// HWSprite elsewhere in the draw lists.
|
||||||
void HWSprite::AdjustVisualThinker(HWDrawInfo* di, DVisualThinker* spr, sector_t* sector)
|
void HWSprite::AdjustVisualThinker(HWDrawInfo* di, DVisualThinker* spr, sector_t* sector)
|
||||||
{
|
{
|
||||||
|
@ -1449,7 +1501,7 @@ void HWSprite::AdjustVisualThinker(HWDrawInfo* di, DVisualThinker* spr, sector_t
|
||||||
|
|
||||||
if (paused || spr->isFrozen())
|
if (paused || spr->isFrozen())
|
||||||
timefrac = 0.;
|
timefrac = 0.;
|
||||||
|
|
||||||
bool custom_anim = ((spr->PT.flags & SPF_LOCAL_ANIM) && spr->PT.animData.ok);
|
bool custom_anim = ((spr->PT.flags & SPF_LOCAL_ANIM) && spr->PT.animData.ok);
|
||||||
|
|
||||||
texture = TexMan.GetGameTexture(
|
texture = TexMan.GetGameTexture(
|
||||||
|
@ -1465,8 +1517,8 @@ void HWSprite::AdjustVisualThinker(HWDrawInfo* di, DVisualThinker* spr, sector_t
|
||||||
y = interp.Y;
|
y = interp.Y;
|
||||||
z = interp.Z;
|
z = interp.Z;
|
||||||
|
|
||||||
offx = (float)spr->Offset.X;
|
offx = (float)spr->GetOffset(false);
|
||||||
offy = (float)spr->Offset.Y;
|
offy = (float)spr->GetOffset(true);
|
||||||
|
|
||||||
if (spr->PT.flags & SPF_ROLL)
|
if (spr->PT.flags & SPF_ROLL)
|
||||||
Angles.Roll = TAngle<double>::fromDeg(spr->InterpolatedRoll(timefrac));
|
Angles.Roll = TAngle<double>::fromDeg(spr->InterpolatedRoll(timefrac));
|
||||||
|
@ -1481,7 +1533,7 @@ void HWSprite::AdjustVisualThinker(HWDrawInfo* di, DVisualThinker* spr, sector_t
|
||||||
auto r = spi.GetSpriteRect();
|
auto r = spi.GetSpriteRect();
|
||||||
r.Scale(spr->Scale.X, spr->Scale.Y);
|
r.Scale(spr->Scale.X, spr->Scale.Y);
|
||||||
|
|
||||||
if (spr->bXFlip)
|
if (spr->bXFlip)
|
||||||
{
|
{
|
||||||
std::swap(ul,ur);
|
std::swap(ul,ur);
|
||||||
r.left = -r.width - r.left; // mirror the sprite's x-offset
|
r.left = -r.width - r.left; // mirror the sprite's x-offset
|
||||||
|
@ -1508,7 +1560,7 @@ void HWSprite::AdjustVisualThinker(HWDrawInfo* di, DVisualThinker* spr, sector_t
|
||||||
|
|
||||||
//==========================================================================
|
//==========================================================================
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
//==========================================================================
|
//==========================================================================
|
||||||
|
|
||||||
|
|
|
@ -66,6 +66,7 @@
|
||||||
#include "i_system.h"
|
#include "i_system.h"
|
||||||
#include "v_draw.h"
|
#include "v_draw.h"
|
||||||
#include "i_interface.h"
|
#include "i_interface.h"
|
||||||
|
#include "d_main.h"
|
||||||
|
|
||||||
// EXTERNAL DATA DECLARATIONS ----------------------------------------------
|
// EXTERNAL DATA DECLARATIONS ----------------------------------------------
|
||||||
|
|
||||||
|
@ -153,6 +154,8 @@ FRenderViewpoint::FRenderViewpoint()
|
||||||
Sin = 0.0;
|
Sin = 0.0;
|
||||||
TanCos = 0.0;
|
TanCos = 0.0;
|
||||||
TanSin = 0.0;
|
TanSin = 0.0;
|
||||||
|
PitchCos = 0.0;
|
||||||
|
PitchSin = 0.0;
|
||||||
camera = nullptr;
|
camera = nullptr;
|
||||||
sector = nullptr;
|
sector = nullptr;
|
||||||
FieldOfView = DAngle::fromDeg(90.); // Angles in the SCREENWIDTH wide window
|
FieldOfView = DAngle::fromDeg(90.); // Angles in the SCREENWIDTH wide window
|
||||||
|
@ -600,7 +603,7 @@ void R_InterpolateView (FRenderViewpoint &viewpoint, player_t *player, double Fr
|
||||||
else break;
|
else break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (moved) viewpoint.noviewer = true;
|
if (moved && !viewpoint.showviewer) viewpoint.noviewer = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
//==========================================================================
|
//==========================================================================
|
||||||
|
@ -630,6 +633,9 @@ void FRenderViewpoint::SetViewAngle (const FViewWindow &viewwindow)
|
||||||
TanSin = viewwindow.FocalTangent * Sin;
|
TanSin = viewwindow.FocalTangent * Sin;
|
||||||
TanCos = viewwindow.FocalTangent * Cos;
|
TanCos = viewwindow.FocalTangent * Cos;
|
||||||
|
|
||||||
|
PitchSin = Angles.Pitch.Sin();
|
||||||
|
PitchCos = Angles.Pitch.Cos();
|
||||||
|
|
||||||
DVector2 v = Angles.Yaw.ToVector();
|
DVector2 v = Angles.Yaw.ToVector();
|
||||||
ViewVector.X = v.X;
|
ViewVector.X = v.X;
|
||||||
ViewVector.Y = v.Y;
|
ViewVector.Y = v.Y;
|
||||||
|
@ -859,6 +865,7 @@ void R_SetupFrame (FRenderViewpoint &viewpoint, FViewWindow &viewwindow, AActor
|
||||||
{
|
{
|
||||||
iview->otic = nowtic;
|
iview->otic = nowtic;
|
||||||
iview->Old = iview->New;
|
iview->Old = iview->New;
|
||||||
|
viewpoint.noviewer = false;
|
||||||
}
|
}
|
||||||
//==============================================================================================
|
//==============================================================================================
|
||||||
// Handles offsetting the camera with ChaseCam and/or viewpos.
|
// Handles offsetting the camera with ChaseCam and/or viewpos.
|
||||||
|
@ -881,7 +888,7 @@ void R_SetupFrame (FRenderViewpoint &viewpoint, FViewWindow &viewwindow, AActor
|
||||||
P_AimCamera(viewpoint.camera, campos, camangle, viewpoint.sector, unlinked); // fixme: This needs to translate the angle, too.
|
P_AimCamera(viewpoint.camera, campos, camangle, viewpoint.sector, unlinked); // fixme: This needs to translate the angle, too.
|
||||||
iview->New.Pos = campos;
|
iview->New.Pos = campos;
|
||||||
iview->New.Angles.Yaw = camangle;
|
iview->New.Angles.Yaw = camangle;
|
||||||
|
viewpoint.noviewer = false;
|
||||||
viewpoint.showviewer = true;
|
viewpoint.showviewer = true;
|
||||||
// Interpolating this is a very complicated thing because nothing keeps track of the aim camera's movement, so whenever we detect a portal transition
|
// Interpolating this is a very complicated thing because nothing keeps track of the aim camera's movement, so whenever we detect a portal transition
|
||||||
// it's probably best to just reset the interpolation for this move.
|
// it's probably best to just reset the interpolation for this move.
|
||||||
|
@ -948,7 +955,11 @@ void R_SetupFrame (FRenderViewpoint &viewpoint, FViewWindow &viewwindow, AActor
|
||||||
// Interpolation still happens with everything else though and seems to work fine.
|
// Interpolation still happens with everything else though and seems to work fine.
|
||||||
DefaultDraw = false;
|
DefaultDraw = false;
|
||||||
viewpoint.NoPortalPath = true;
|
viewpoint.NoPortalPath = true;
|
||||||
P_AdjustViewPos(mo, orig, next, viewpoint.sector, unlinked, VP, &viewpoint);
|
// Allow VPSF_ALLOWOUTOFBOUNDS camera viewpoints to go out of bounds when using HW renderer
|
||||||
|
if (!(VP->Flags & VPSF_ALLOWOUTOFBOUNDS) || !V_IsHardwareRenderer())
|
||||||
|
{
|
||||||
|
P_AdjustViewPos(mo, orig, next, viewpoint.sector, unlinked, VP, &viewpoint);
|
||||||
|
}
|
||||||
|
|
||||||
if (viewpoint.sector->PortalGroup != oldsector->PortalGroup || (unlinked && ((iview->New.Pos.XY() - iview->Old.Pos.XY()).LengthSquared()) > 256 * 256))
|
if (viewpoint.sector->PortalGroup != oldsector->PortalGroup || (unlinked && ((iview->New.Pos.XY() - iview->Old.Pos.XY()).LengthSquared()) > 256 * 256))
|
||||||
{
|
{
|
||||||
|
@ -995,7 +1006,10 @@ void R_SetupFrame (FRenderViewpoint &viewpoint, FViewWindow &viewwindow, AActor
|
||||||
viewpoint.SetViewAngle (viewwindow);
|
viewpoint.SetViewAngle (viewwindow);
|
||||||
|
|
||||||
// Keep the view within the sector's floor and ceiling
|
// Keep the view within the sector's floor and ceiling
|
||||||
if (viewpoint.sector->PortalBlocksMovement(sector_t::ceiling))
|
// But allow VPSF_ALLOWOUTOFBOUNDS camera viewpoints to go out of bounds when using hardware renderer
|
||||||
|
bool disembodied = false;
|
||||||
|
if (viewpoint.camera->ViewPos != NULL) disembodied = viewpoint.camera->ViewPos->Flags & VPSF_ALLOWOUTOFBOUNDS;
|
||||||
|
if (viewpoint.sector->PortalBlocksMovement(sector_t::ceiling) && (!disembodied || !V_IsHardwareRenderer()))
|
||||||
{
|
{
|
||||||
double theZ = viewpoint.sector->ceilingplane.ZatPoint(viewpoint.Pos) - 4;
|
double theZ = viewpoint.sector->ceilingplane.ZatPoint(viewpoint.Pos) - 4;
|
||||||
if (viewpoint.Pos.Z > theZ)
|
if (viewpoint.Pos.Z > theZ)
|
||||||
|
@ -1004,7 +1018,7 @@ void R_SetupFrame (FRenderViewpoint &viewpoint, FViewWindow &viewwindow, AActor
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (viewpoint.sector->PortalBlocksMovement(sector_t::floor))
|
if (viewpoint.sector->PortalBlocksMovement(sector_t::floor) && (!disembodied || !V_IsHardwareRenderer()))
|
||||||
{
|
{
|
||||||
double theZ = viewpoint.sector->floorplane.ZatPoint(viewpoint.Pos) + 4;
|
double theZ = viewpoint.sector->floorplane.ZatPoint(viewpoint.Pos) + 4;
|
||||||
if (viewpoint.Pos.Z < theZ)
|
if (viewpoint.Pos.Z < theZ)
|
||||||
|
|
|
@ -33,6 +33,8 @@ struct FRenderViewpoint
|
||||||
double Sin; // sin(Angles.Yaw)
|
double Sin; // sin(Angles.Yaw)
|
||||||
double TanCos; // FocalTangent * cos(Angles.Yaw)
|
double TanCos; // FocalTangent * cos(Angles.Yaw)
|
||||||
double TanSin; // FocalTangent * sin(Angles.Yaw)
|
double TanSin; // FocalTangent * sin(Angles.Yaw)
|
||||||
|
double PitchCos; // cos(Angles.Pitch)
|
||||||
|
double PitchSin; // sin(Angles.Pitch)
|
||||||
|
|
||||||
AActor *camera; // camera actor
|
AActor *camera; // camera actor
|
||||||
sector_t *sector; // [RH] keep track of sector viewing from
|
sector_t *sector; // [RH] keep track of sector viewing from
|
||||||
|
|
|
@ -1046,7 +1046,7 @@ namespace swrenderer
|
||||||
// The X offsetting (SpriteOffset.X) is performed in r_sprite.cpp, in RenderSprite::Project().
|
// The X offsetting (SpriteOffset.X) is performed in r_sprite.cpp, in RenderSprite::Project().
|
||||||
sprite.pos = thing->InterpolatedPosition(Thread->Viewport->viewpoint.TicFrac);
|
sprite.pos = thing->InterpolatedPosition(Thread->Viewport->viewpoint.TicFrac);
|
||||||
sprite.pos += thing->WorldOffset;
|
sprite.pos += thing->WorldOffset;
|
||||||
sprite.pos.Z += thing->GetBobOffset(Thread->Viewport->viewpoint.TicFrac) - thing->SpriteOffset.Y;
|
sprite.pos.Z += thing->GetBobOffset(Thread->Viewport->viewpoint.TicFrac) + thing->GetSpriteOffset(true);
|
||||||
sprite.spritenum = thing->sprite;
|
sprite.spritenum = thing->sprite;
|
||||||
sprite.tex = nullptr;
|
sprite.tex = nullptr;
|
||||||
sprite.voxel = nullptr;
|
sprite.voxel = nullptr;
|
||||||
|
|
|
@ -81,7 +81,7 @@ namespace swrenderer
|
||||||
const double thingxscalemul = spriteScale.X / tex->GetScale().X;
|
const double thingxscalemul = spriteScale.X / tex->GetScale().X;
|
||||||
|
|
||||||
// Calculate billboard line for the sprite
|
// Calculate billboard line for the sprite
|
||||||
double SpriteOffX = (thing) ? thing->SpriteOffset.X : 0.;
|
double SpriteOffX = (thing) ? -thing->GetSpriteOffset(false) : 0.;
|
||||||
DVector2 dir = { viewport->viewpoint.Sin, -viewport->viewpoint.Cos };
|
DVector2 dir = { viewport->viewpoint.Sin, -viewport->viewpoint.Cos };
|
||||||
DVector2 trs = pos.XY() - viewport->viewpoint.Pos.XY();
|
DVector2 trs = pos.XY() - viewport->viewpoint.Pos.XY();
|
||||||
trs = { trs.X + SpriteOffX * dir.X, trs.Y + SpriteOffX * dir.Y };
|
trs = { trs.X + SpriteOffX * dir.X, trs.Y + SpriteOffX * dir.Y };
|
||||||
|
|
|
@ -381,6 +381,8 @@ static FFlagDef ActorFlagDefs[]=
|
||||||
DEFINE_FLAG(RF2, ONLYVISIBLEINMIRRORS, AActor, renderflags2),
|
DEFINE_FLAG(RF2, ONLYVISIBLEINMIRRORS, AActor, renderflags2),
|
||||||
DEFINE_FLAG(RF2, BILLBOARDFACECAMERA, AActor, renderflags2),
|
DEFINE_FLAG(RF2, BILLBOARDFACECAMERA, AActor, renderflags2),
|
||||||
DEFINE_FLAG(RF2, BILLBOARDNOFACECAMERA, AActor, renderflags2),
|
DEFINE_FLAG(RF2, BILLBOARDNOFACECAMERA, AActor, renderflags2),
|
||||||
|
DEFINE_FLAG(RF2, FLIPSPRITEOFFSETX, AActor, renderflags2),
|
||||||
|
DEFINE_FLAG(RF2, FLIPSPRITEOFFSETY, AActor, renderflags2),
|
||||||
|
|
||||||
// Bounce flags
|
// Bounce flags
|
||||||
DEFINE_FLAG2(BOUNCE_Walls, BOUNCEONWALLS, AActor, BounceFlags),
|
DEFINE_FLAG2(BOUNCE_Walls, BOUNCEONWALLS, AActor, BounceFlags),
|
||||||
|
|
|
@ -1693,7 +1693,7 @@ DEFINE_ACTION_FUNCTION_NATIVE(_Sector, SetXOffset, SetXOffset)
|
||||||
PARAM_SELF_STRUCT_PROLOGUE(FLevelLocals);
|
PARAM_SELF_STRUCT_PROLOGUE(FLevelLocals);
|
||||||
ACTION_RETURN_BOOL(self->IsFreelookAllowed());
|
ACTION_RETURN_BOOL(self->IsFreelookAllowed());
|
||||||
}
|
}
|
||||||
|
|
||||||
//==========================================================================
|
//==========================================================================
|
||||||
//
|
//
|
||||||
// ZScript counterpart to ACS ChangeSky, uses TextureIDs
|
// ZScript counterpart to ACS ChangeSky, uses TextureIDs
|
||||||
|
|
|
@ -55,6 +55,7 @@
|
||||||
#include "actorinlines.h"
|
#include "actorinlines.h"
|
||||||
#include "p_enemy.h"
|
#include "p_enemy.h"
|
||||||
#include "gi.h"
|
#include "gi.h"
|
||||||
|
#include "shadowinlines.h"
|
||||||
|
|
||||||
DVector2 AM_GetPosition();
|
DVector2 AM_GetPosition();
|
||||||
int Net_GetLatency(int *ld, int *ad);
|
int Net_GetLatency(int *ld, int *ad);
|
||||||
|
@ -1227,6 +1228,23 @@ DEFINE_ACTION_FUNCTION_NATIVE(AActor, LineTrace, LineTrace)
|
||||||
ACTION_RETURN_BOOL(P_LineTrace(self,DAngle::fromDeg(angle),distance,DAngle::fromDeg(pitch),flags,offsetz,offsetforward,offsetside,data));
|
ACTION_RETURN_BOOL(P_LineTrace(self,DAngle::fromDeg(angle),distance,DAngle::fromDeg(pitch),flags,offsetz,offsetforward,offsetside,data));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
DEFINE_ACTION_FUNCTION(AActor, PerformShadowChecks)
|
||||||
|
{
|
||||||
|
PARAM_SELF_PROLOGUE(AActor);
|
||||||
|
PARAM_OBJECT(other, AActor); //If this pointer is null, the trace uses the facing direction instead.
|
||||||
|
PARAM_FLOAT(x);
|
||||||
|
PARAM_FLOAT(y);
|
||||||
|
PARAM_FLOAT(z);
|
||||||
|
|
||||||
|
double penaltyFactor = 0.0;
|
||||||
|
AActor* shadow = PerformShadowChecks(self, other, DVector3(x, y, z), penaltyFactor);
|
||||||
|
if (numret > 2) ret[2].SetFloat(penaltyFactor);
|
||||||
|
if (numret > 1) ret[1].SetObject(shadow);
|
||||||
|
if (numret > 0) ret[0].SetInt(bool(shadow));
|
||||||
|
return numret;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
static void TraceBleedAngle(AActor *self, int damage, double angle, double pitch)
|
static void TraceBleedAngle(AActor *self, int damage, double angle, double pitch)
|
||||||
{
|
{
|
||||||
P_TraceBleed(damage, self, DAngle::fromDeg(angle), DAngle::fromDeg(pitch));
|
P_TraceBleed(damage, self, DAngle::fromDeg(angle), DAngle::fromDeg(pitch));
|
||||||
|
@ -2123,6 +2141,7 @@ DEFINE_FIELD_NAMED(AActor, ViewAngles.Roll, viewroll)
|
||||||
DEFINE_FIELD(AActor, LightLevel)
|
DEFINE_FIELD(AActor, LightLevel)
|
||||||
DEFINE_FIELD(AActor, ShadowAimFactor)
|
DEFINE_FIELD(AActor, ShadowAimFactor)
|
||||||
DEFINE_FIELD(AActor, ShadowPenaltyFactor)
|
DEFINE_FIELD(AActor, ShadowPenaltyFactor)
|
||||||
|
DEFINE_FIELD(AActor, AutomapOffsets)
|
||||||
|
|
||||||
DEFINE_FIELD_X(FCheckPosition, FCheckPosition, thing);
|
DEFINE_FIELD_X(FCheckPosition, FCheckPosition, thing);
|
||||||
DEFINE_FIELD_X(FCheckPosition, FCheckPosition, pos);
|
DEFINE_FIELD_X(FCheckPosition, FCheckPosition, pos);
|
||||||
|
|
26
vcpkg.json
26
vcpkg.json
|
@ -10,7 +10,7 @@
|
||||||
{
|
{
|
||||||
"name": "libvpx",
|
"name": "libvpx",
|
||||||
"default-features": false,
|
"default-features": false,
|
||||||
"platform": "windows & static & staticcrt"
|
"platform": "(!windows & static) | (windows & static & staticcrt)"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
@ -21,7 +21,7 @@
|
||||||
{
|
{
|
||||||
"name": "openal-soft",
|
"name": "openal-soft",
|
||||||
"default-features": false,
|
"default-features": false,
|
||||||
"platform": "!windows | (windows & static & staticcrt)"
|
"platform": "(!windows & static) | (windows & static & staticcrt)"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -29,19 +29,23 @@
|
||||||
"dependencies": [
|
"dependencies": [
|
||||||
{
|
{
|
||||||
"name": "bzip2",
|
"name": "bzip2",
|
||||||
"platform": "!windows | (windows & static & staticcrt)"
|
"platform": "(!windows & static) | (windows & static & staticcrt)"
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "sdl2",
|
|
||||||
"platform": "!windows & !osx"
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "libvpx",
|
"name": "libvpx",
|
||||||
"platform": "!windows"
|
"platform": "!windows & static"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "libwebp",
|
"name": "libwebp",
|
||||||
"platform": "!windows | (windows & static & staticcrt)"
|
"platform": "(!windows & static) | (windows & static & staticcrt)"
|
||||||
}
|
},
|
||||||
|
{
|
||||||
|
"name": "gtk3",
|
||||||
|
"platform": "!windows & !osx & static"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "glib",
|
||||||
|
"platform": "!windows & !osx & static"
|
||||||
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -1688,6 +1688,8 @@ OptionMenu CoopOptions protected
|
||||||
Title "$GMPLYMNU_COOPERATIVE"
|
Title "$GMPLYMNU_COOPERATIVE"
|
||||||
|
|
||||||
Option "$GMPLYMNU_MULTIPLAYERTHINGS", "sv_nothingspawn", "NoYes"
|
Option "$GMPLYMNU_MULTIPLAYERTHINGS", "sv_nothingspawn", "NoYes"
|
||||||
|
Option "$GMPLYMNU_COOPTHINGS", "sv_nocoopthings", "NoYes"
|
||||||
|
Option "$GMPLYMNU_COOPITEMS", "sv_nocoopitems", "NoYes"
|
||||||
Option "$GMPLYMNU_MULTIPLAYERWEAPONS", "sv_noweaponspawn", "NoYes"
|
Option "$GMPLYMNU_MULTIPLAYERWEAPONS", "sv_noweaponspawn", "NoYes"
|
||||||
Option "$GMPLYMNU_LOSEINVENTORY", "sv_cooploseinventory", "YesNo"
|
Option "$GMPLYMNU_LOSEINVENTORY", "sv_cooploseinventory", "YesNo"
|
||||||
Option "$GMPLYMNU_KEEPKEYS", "sv_cooplosekeys", "NoYes"
|
Option "$GMPLYMNU_KEEPKEYS", "sv_cooplosekeys", "NoYes"
|
||||||
|
@ -1699,6 +1701,8 @@ OptionMenu CoopOptions protected
|
||||||
Option "$GMPLYMNU_SPAWNWHEREDIED", "sv_samespawnspot", "YesNo"
|
Option "$GMPLYMNU_SPAWNWHEREDIED", "sv_samespawnspot", "YesNo"
|
||||||
Option "$GMPLYMNU_NOPLAYERCLIP", "sv_noplayerclip", "YesNo"
|
Option "$GMPLYMNU_NOPLAYERCLIP", "sv_noplayerclip", "YesNo"
|
||||||
Option "$GMPLYMNU_SHAREKEYS", "sv_coopsharekeys", "YesNo"
|
Option "$GMPLYMNU_SHAREKEYS", "sv_coopsharekeys", "YesNo"
|
||||||
|
Option "$GMPLYMNU_LOCALITEMS", "sv_localitems", "YesNo"
|
||||||
|
Option "$GMPLYMNU_NOLOCALDROP", "sv_nolocaldrops", "YesNo"
|
||||||
Class "GameplayMenu"
|
Class "GameplayMenu"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -260,6 +260,7 @@ class Actor : Thinker native
|
||||||
native readonly int SpawnTime;
|
native readonly int SpawnTime;
|
||||||
private native int InventoryID; // internal counter.
|
private native int InventoryID; // internal counter.
|
||||||
native uint freezetics;
|
native uint freezetics;
|
||||||
|
native Vector2 AutomapOffsets;
|
||||||
|
|
||||||
meta String Obituary; // Player was killed by this actor
|
meta String Obituary; // Player was killed by this actor
|
||||||
meta String HitObituary; // Player was killed by this actor in melee
|
meta String HitObituary; // Player was killed by this actor in melee
|
||||||
|
@ -364,6 +365,7 @@ class Actor : Thinker native
|
||||||
property LightLevel: LightLevel;
|
property LightLevel: LightLevel;
|
||||||
property ShadowAimFactor: ShadowAimFactor;
|
property ShadowAimFactor: ShadowAimFactor;
|
||||||
property ShadowPenaltyFactor: ShadowPenaltyFactor;
|
property ShadowPenaltyFactor: ShadowPenaltyFactor;
|
||||||
|
property AutomapOffsets : AutomapOffsets;
|
||||||
|
|
||||||
// need some definition work first
|
// need some definition work first
|
||||||
//FRenderStyle RenderStyle;
|
//FRenderStyle RenderStyle;
|
||||||
|
@ -443,6 +445,7 @@ class Actor : Thinker native
|
||||||
SelfDamageFactor 1;
|
SelfDamageFactor 1;
|
||||||
ShadowAimFactor 1;
|
ShadowAimFactor 1;
|
||||||
ShadowPenaltyFactor 1;
|
ShadowPenaltyFactor 1;
|
||||||
|
AutomapOffsets (0,0);
|
||||||
StealthAlpha 0;
|
StealthAlpha 0;
|
||||||
WoundHealth 6;
|
WoundHealth 6;
|
||||||
GibHealth int.min;
|
GibHealth int.min;
|
||||||
|
@ -500,6 +503,8 @@ class Actor : Thinker native
|
||||||
virtual native void FallAndSink(double grav, double oldfloorz);
|
virtual native void FallAndSink(double grav, double oldfloorz);
|
||||||
private native void Substitute(Actor replacement);
|
private native void Substitute(Actor replacement);
|
||||||
native ui void DisplayNameTag();
|
native ui void DisplayNameTag();
|
||||||
|
native clearscope void DisableLocalRendering(uint playerNum, bool disable);
|
||||||
|
native ui bool ShouldRenderLocally(); // Only clients get to check this, never the playsim.
|
||||||
|
|
||||||
// Called by inventory items to see if this actor is capable of touching them.
|
// Called by inventory items to see if this actor is capable of touching them.
|
||||||
// If true, the item will attempt to be picked up. Useful for things like
|
// If true, the item will attempt to be picked up. Useful for things like
|
||||||
|
@ -769,6 +774,7 @@ class Actor : Thinker native
|
||||||
native bool LineTrace(double angle, double distance, double pitch, int flags = 0, double offsetz = 0., double offsetforward = 0., double offsetside = 0., out FLineTraceData data = null);
|
native bool LineTrace(double angle, double distance, double pitch, int flags = 0, double offsetz = 0., double offsetforward = 0., double offsetside = 0., out FLineTraceData data = null);
|
||||||
native bool CheckSight(Actor target, int flags = 0);
|
native bool CheckSight(Actor target, int flags = 0);
|
||||||
native bool IsVisible(Actor other, bool allaround, LookExParams params = null);
|
native bool IsVisible(Actor other, bool allaround, LookExParams params = null);
|
||||||
|
native bool, Actor, double PerformShadowChecks (Actor other, Vector3 pos);
|
||||||
native bool HitFriend();
|
native bool HitFriend();
|
||||||
native bool MonsterMove();
|
native bool MonsterMove();
|
||||||
|
|
||||||
|
@ -798,6 +804,7 @@ class Actor : Thinker native
|
||||||
native bool CheckMissileRange();
|
native bool CheckMissileRange();
|
||||||
native bool SetState(state st, bool nofunction = false);
|
native bool SetState(state st, bool nofunction = false);
|
||||||
clearscope native state FindState(statelabel st, bool exact = false) const;
|
clearscope native state FindState(statelabel st, bool exact = false) const;
|
||||||
|
clearscope native state FindStateByString(string st, bool exact = false) const;
|
||||||
bool SetStateLabel(statelabel st, bool nofunction = false) { return SetState(FindState(st), nofunction); }
|
bool SetStateLabel(statelabel st, bool nofunction = false) { return SetState(FindState(st), nofunction); }
|
||||||
native action state ResolveState(statelabel st); // this one, unlike FindState, is context aware.
|
native action state ResolveState(statelabel st); // this one, unlike FindState, is context aware.
|
||||||
native void LinkToWorld(LinkContext ctx = null);
|
native void LinkToWorld(LinkContext ctx = null);
|
||||||
|
|
|
@ -11,6 +11,7 @@ class Inventory : Actor
|
||||||
const BONUSADD = 6;
|
const BONUSADD = 6;
|
||||||
|
|
||||||
private bool bSharingItem; // Currently being shared (avoid infinite recursions).
|
private bool bSharingItem; // Currently being shared (avoid infinite recursions).
|
||||||
|
private bool pickedUp[MAXPLAYERS]; // If items are set to local, track who already picked it up.
|
||||||
|
|
||||||
deprecated("3.7") private int ItemFlags;
|
deprecated("3.7") private int ItemFlags;
|
||||||
Actor Owner; // Who owns this item? NULL if it's still a pickup.
|
Actor Owner; // Who owns this item? NULL if it's still a pickup.
|
||||||
|
@ -67,6 +68,7 @@ class Inventory : Actor
|
||||||
flagdef IsHealth: ItemFlags, 22;
|
flagdef IsHealth: ItemFlags, 22;
|
||||||
flagdef AlwaysPickup: ItemFlags, 23;
|
flagdef AlwaysPickup: ItemFlags, 23;
|
||||||
flagdef Unclearable: ItemFlags, 24;
|
flagdef Unclearable: ItemFlags, 24;
|
||||||
|
flagdef NeverLocal: ItemFlags, 25;
|
||||||
flagdef IsKeyItem: ItemFlags, 26;
|
flagdef IsKeyItem: ItemFlags, 26;
|
||||||
|
|
||||||
flagdef ForceRespawnInSurvival: none, 0;
|
flagdef ForceRespawnInSurvival: none, 0;
|
||||||
|
@ -812,12 +814,17 @@ class Inventory : Actor
|
||||||
|
|
||||||
override void Touch (Actor toucher)
|
override void Touch (Actor toucher)
|
||||||
{
|
{
|
||||||
|
bool localPickUp;
|
||||||
let player = toucher.player;
|
let player = toucher.player;
|
||||||
|
if (player)
|
||||||
// If a voodoo doll touches something, pretend the real player touched it instead.
|
|
||||||
if (player != NULL)
|
|
||||||
{
|
{
|
||||||
|
// If a voodoo doll touches something, pretend the real player touched it instead.
|
||||||
toucher = player.mo;
|
toucher = player.mo;
|
||||||
|
// Client already picked this up, so ignore them.
|
||||||
|
if (HasPickedUpLocally(toucher))
|
||||||
|
return;
|
||||||
|
|
||||||
|
localPickUp = CanPickUpLocally(toucher) && !ShouldStay() && !ShouldRespawn();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool localview = toucher.CheckLocalView();
|
bool localview = toucher.CheckLocalView();
|
||||||
|
@ -825,9 +832,23 @@ class Inventory : Actor
|
||||||
if (!toucher.CanTouchItem(self))
|
if (!toucher.CanTouchItem(self))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
Inventory give = self;
|
||||||
|
if (localPickUp)
|
||||||
|
{
|
||||||
|
give = Inventory(Spawn(GetClass()));
|
||||||
|
if (!give)
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
bool res;
|
bool res;
|
||||||
[res, toucher] = CallTryPickup(toucher);
|
[res, toucher] = give.CallTryPickup(toucher);
|
||||||
if (!res) return;
|
if (!res)
|
||||||
|
{
|
||||||
|
if (give != self)
|
||||||
|
give.Destroy();
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// This is the only situation when a pickup flash should ever play.
|
// This is the only situation when a pickup flash should ever play.
|
||||||
if (PickupFlash != NULL && !ShouldStay())
|
if (PickupFlash != NULL && !ShouldStay())
|
||||||
|
@ -873,6 +894,9 @@ class Inventory : Actor
|
||||||
ac.GiveSecret(true, true);
|
ac.GiveSecret(true, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (localPickUp)
|
||||||
|
PickUpLocally(toucher);
|
||||||
|
|
||||||
//Added by MC: Check if item taken was the roam destination of any bot
|
//Added by MC: Check if item taken was the roam destination of any bot
|
||||||
for (int i = 0; i < MAXPLAYERS; i++)
|
for (int i = 0; i < MAXPLAYERS; i++)
|
||||||
{
|
{
|
||||||
|
@ -1058,6 +1082,37 @@ class Inventory : Actor
|
||||||
SetStateLabel("HoldAndDestroy");
|
SetStateLabel("HoldAndDestroy");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Check if the Actor can recieve a local copy of the item instead of outright taking it.
|
||||||
|
clearscope bool CanPickUpLocally(Actor other) const
|
||||||
|
{
|
||||||
|
return other && other.player
|
||||||
|
&& multiplayer && !deathmatch && sv_localitems
|
||||||
|
&& !bNeverLocal && (!bDropped || !sv_nolocaldrops);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Check if a client has already picked up this item locally.
|
||||||
|
clearscope bool HasPickedUpLocally(Actor client) const
|
||||||
|
{
|
||||||
|
return pickedUp[client.PlayerNumber()];
|
||||||
|
}
|
||||||
|
|
||||||
|
// When items are dropped, clear their local pick ups.
|
||||||
|
void ClearLocalPickUps()
|
||||||
|
{
|
||||||
|
DisableLocalRendering(consoleplayer, false);
|
||||||
|
for (int i; i < MAXPLAYERS; ++i)
|
||||||
|
pickedUp[i] = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Client picked up this item. Mark it as invisible to that specific player and
|
||||||
|
// prevent them from picking it up again.
|
||||||
|
protected void PickUpLocally(Actor client)
|
||||||
|
{
|
||||||
|
int pNum = client.PlayerNumber();
|
||||||
|
pickedUp[pNum] = true;
|
||||||
|
DisableLocalRendering(pNum, true);
|
||||||
|
}
|
||||||
|
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
//
|
//
|
||||||
|
|
|
@ -291,6 +291,8 @@ extend class Actor
|
||||||
{
|
{
|
||||||
Inventory drop = item.CreateTossable(amt);
|
Inventory drop = item.CreateTossable(amt);
|
||||||
if (drop == null) return NULL;
|
if (drop == null) return NULL;
|
||||||
|
drop.ClearLocalPickUps();
|
||||||
|
drop.bNeverLocal = true;
|
||||||
drop.SetOrigin(Pos + (0, 0, 10.), false);
|
drop.SetOrigin(Pos + (0, 0, 10.), false);
|
||||||
drop.Angle = Angle;
|
drop.Angle = Angle;
|
||||||
drop.VelFromAngle(5.);
|
drop.VelFromAngle(5.);
|
||||||
|
|
|
@ -128,3 +128,89 @@ class AimingCamera : SecurityCamera
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
class SpectatorCamera : Actor
|
||||||
|
{
|
||||||
|
|
||||||
|
bool chasingtracer;
|
||||||
|
double lagdistance; // camera gives chase (lazy follow) if tracer gets > lagdistance away from camera.pos
|
||||||
|
int chasemode; // 0: chase until tracer centered, 1: same but only when tracer is moving, 2: stop chase if tracer within lagdistance
|
||||||
|
property lagdistance : lagdistance;
|
||||||
|
property chasingtracer : chasingtracer;
|
||||||
|
property chasemode : chasemode;
|
||||||
|
|
||||||
|
default
|
||||||
|
{
|
||||||
|
+NOBLOCKMAP
|
||||||
|
+NOGRAVITY
|
||||||
|
+NOSECTOR
|
||||||
|
+NOINTERACTION
|
||||||
|
RenderStyle "None";
|
||||||
|
CameraHeight 0;
|
||||||
|
SpectatorCamera.chasingtracer false;
|
||||||
|
SpectatorCamera.lagdistance 0.0;
|
||||||
|
SpectatorCamera.chasemode 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
void Init(double dist, double yaw, double inpitch, int inflags)
|
||||||
|
{
|
||||||
|
if(((inflags > 0) && (inflags & VPSF_ORTHOGRAPHIC)) || ((inflags < 0) && (ViewPos.Flags & VPSF_ORTHOGRAPHIC))) dist *= 3.0;
|
||||||
|
|
||||||
|
double zshift = 0.0;
|
||||||
|
if(tracer != NULL)
|
||||||
|
{
|
||||||
|
if(player != NULL) zshift = -0.5*tracer.height;
|
||||||
|
else zshift = 0.5*tracer.height;
|
||||||
|
}
|
||||||
|
else if (player != NULL && player.mo != NULL) zshift = -0.5*player.mo.height;
|
||||||
|
|
||||||
|
SetViewPos((-dist*Cos(yaw), -dist*Sin(yaw), dist*Tan(inpitch)+zshift), inflags);
|
||||||
|
LookAtSelf(inpitch);
|
||||||
|
}
|
||||||
|
|
||||||
|
void LookAtSelf(double inpitch)
|
||||||
|
{
|
||||||
|
if(ViewPos.Offset != (0., 0., 0.))
|
||||||
|
{
|
||||||
|
Vector3 negviewpos = (-1.0) * ViewPos.Offset;
|
||||||
|
angle = negviewpos.Angle();
|
||||||
|
pitch = inpitch;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
override void Tick()
|
||||||
|
{
|
||||||
|
if(tracer != NULL)
|
||||||
|
{
|
||||||
|
Vector3 distvec = tracer.pos - pos;
|
||||||
|
double dist = distvec.length();
|
||||||
|
if((dist <= 4 && chasingtracer) || lagdistance <= 0.0) // Keep tracer centered on screen
|
||||||
|
{
|
||||||
|
SetOrigin(tracer.pos, true);
|
||||||
|
chasingtracer = false;
|
||||||
|
}
|
||||||
|
else // Lazy follow tracer
|
||||||
|
{
|
||||||
|
if(dist >= 2*lagdistance)
|
||||||
|
{
|
||||||
|
SetOrigin(tracer.pos, true);
|
||||||
|
chasingtracer = false;
|
||||||
|
}
|
||||||
|
else if(dist > lagdistance && !chasingtracer) chasingtracer = true;
|
||||||
|
|
||||||
|
if(chasingtracer)
|
||||||
|
{
|
||||||
|
speed = tracer.vel.xy.length()/dist;
|
||||||
|
if((speed == 0.0) && (chasemode == 0)) speed = tracer.speed/dist;
|
||||||
|
SetOrigin(pos + 2*distvec*speed, true);
|
||||||
|
if(chasemode > 1) chasingtracer = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if(player != NULL && player.mo != NULL)
|
||||||
|
{
|
||||||
|
cameraFOV = player.FOV;
|
||||||
|
SetOrigin(player.mo.pos, true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -420,6 +420,9 @@ enum EViewPosFlags
|
||||||
{
|
{
|
||||||
VPSF_ABSOLUTEOFFSET = 1 << 1, // Don't include angles.
|
VPSF_ABSOLUTEOFFSET = 1 << 1, // Don't include angles.
|
||||||
VPSF_ABSOLUTEPOS = 1 << 2, // Use absolute position.
|
VPSF_ABSOLUTEPOS = 1 << 2, // Use absolute position.
|
||||||
|
VPSF_ALLOWOUTOFBOUNDS = 1 << 3, // Allow viewpoint to go out of bounds (hardware renderer only).
|
||||||
|
VPSF_ORTHOGRAPHIC = 1 << 4, // Use orthographic projection.
|
||||||
|
VPSF_ISOMETRICSPRITES = 1 << 5, // Displace sprites towards camera and don't billboard (drawn from isometric perspective).
|
||||||
};
|
};
|
||||||
|
|
||||||
// Flags for A_TakeInventory and A_TakeFromTarget
|
// Flags for A_TakeInventory and A_TakeFromTarget
|
||||||
|
|
|
@ -55,6 +55,7 @@ class ListMenuDescriptor : MenuDescriptor native
|
||||||
native int mFontColor;
|
native int mFontColor;
|
||||||
native int mFontColor2;
|
native int mFontColor2;
|
||||||
native bool mCenter;
|
native bool mCenter;
|
||||||
|
native bool mCenterText;
|
||||||
native bool mAnimatedTransition;
|
native bool mAnimatedTransition;
|
||||||
native bool mAnimated;
|
native bool mAnimated;
|
||||||
native bool mDontBlur;
|
native bool mDontBlur;
|
||||||
|
|
|
@ -161,7 +161,7 @@ class ListMenuItemStaticText : ListMenuItem
|
||||||
mText = text;
|
mText = text;
|
||||||
mFont = desc.mFont;
|
mFont = desc.mFont;
|
||||||
mColor = color >= 0? color : desc.mFontColor;
|
mColor = color >= 0? color : desc.mFontColor;
|
||||||
mCentered = false;
|
mCentered = desc.mCenterText;
|
||||||
}
|
}
|
||||||
|
|
||||||
void InitDirect(double x, double y, String text, Font font, int color = Font.CR_UNTRANSLATED, bool centered = false)
|
void InitDirect(double x, double y, String text, Font font, int color = Font.CR_UNTRANSLATED, bool centered = false)
|
||||||
|
@ -294,7 +294,12 @@ class ListMenuItemTextItem : ListMenuItemSelectable
|
||||||
override void Draw(bool selected, ListMenuDescriptor desc)
|
override void Draw(bool selected, ListMenuDescriptor desc)
|
||||||
{
|
{
|
||||||
let font = menuDelegate.PickFont(mFont);
|
let font = menuDelegate.PickFont(mFont);
|
||||||
DrawText(desc, font, selected ? mColorSelected : mColor, mXpos, mYpos, mText);
|
double x = mXpos;
|
||||||
|
if (desc.mCenterText)
|
||||||
|
{
|
||||||
|
x -= font.StringWidth(mText) / 2;
|
||||||
|
}
|
||||||
|
DrawText(desc, font, selected ? mColorSelected : mColor, x, mYpos, mText);
|
||||||
}
|
}
|
||||||
|
|
||||||
override int GetWidth()
|
override int GetWidth()
|
||||||
|
|
|
@ -12,7 +12,9 @@ Class VisualThinker : Thinker native
|
||||||
native TranslationID Translation;
|
native TranslationID Translation;
|
||||||
native uint16 Flags;
|
native uint16 Flags;
|
||||||
native int16 LightLevel;
|
native int16 LightLevel;
|
||||||
native bool bXFlip,
|
native bool bFlipOffsetX,
|
||||||
|
bFlipOffsetY,
|
||||||
|
bXFlip,
|
||||||
bYFlip,
|
bYFlip,
|
||||||
bDontInterpolate,
|
bDontInterpolate,
|
||||||
bAddLightLevel;
|
bAddLightLevel;
|
||||||
|
|
Loading…
Reference in a new issue