Files
UnrealEngineUWP/Engine/Source/ThirdParty/IntelISPCTexComp/ispc_texcomp/kernel_ispc.h
Niklas Smedberg f39fe4e6a2 Integrated Intel ISPC texture compression for BC6H / BC7
[CL 2365669 by Niklas Smedberg in Main branch]
2014-11-19 19:14:13 -05:00

76 lines
2.2 KiB
C++

//
// E:\Dev2\UE4-Clean\Engine\Source\ThirdParty\IntelISPCTexComp\ispc_texcomp\kernel_ispc.h
// (Header automatically generated by the ispc compiler.)
// DO NOT EDIT THIS FILE.
//
#ifndef ISPC_E__DEV2_UE4_CLEAN_ENGINE_SOURCE_THIRDPARTY_INTELISPCTEXCOMP_ISPC_TEXCOMP_KERNEL_ISPC_H
#define ISPC_E__DEV2_UE4_CLEAN_ENGINE_SOURCE_THIRDPARTY_INTELISPCTEXCOMP_ISPC_TEXCOMP_KERNEL_ISPC_H
#include <stdint.h>
#ifdef __cplusplus
namespace ispc { /* namespace */
#endif // __cplusplus
#ifndef __ISPC_STRUCT_rgba_surface__
#define __ISPC_STRUCT_rgba_surface__
struct rgba_surface {
uint8_t * ptr;
int32_t width;
int32_t height;
int32_t stride;
};
#endif
#ifndef __ISPC_STRUCT_bc6h_enc_settings__
#define __ISPC_STRUCT_bc6h_enc_settings__
struct bc6h_enc_settings {
bool slow_mode;
bool fast_mode;
int32_t refineIterations_1p;
int32_t refineIterations_2p;
int32_t fastSkipTreshold;
};
#endif
#ifndef __ISPC_STRUCT_bc7_enc_settings__
#define __ISPC_STRUCT_bc7_enc_settings__
struct bc7_enc_settings {
bool mode_selection[4];
int32_t refineIterations[8];
bool skip_mode2;
int32_t fastSkipTreshold_mode1;
int32_t fastSkipTreshold_mode3;
int32_t fastSkipTreshold_mode7;
int32_t mode45_channel0;
int32_t refineIterations_channel;
int32_t channels;
};
#endif
///////////////////////////////////////////////////////////////////////////
// Functions exported from ispc code
///////////////////////////////////////////////////////////////////////////
#if defined(__cplusplus) && !defined(__ISPC_NO_EXTERN_C)
extern "C" {
#endif // __cplusplus
extern void CompressBlocksBC1_ispc(struct rgba_surface * src, uint8_t * dst);
extern void CompressBlocksBC3_ispc(struct rgba_surface * src, uint8_t * dst);
extern void CompressBlocksBC6H_ispc(struct rgba_surface * src, uint8_t * dst, struct bc6h_enc_settings * settings);
extern void CompressBlocksBC7_ispc(struct rgba_surface * src, uint8_t * dst, struct bc7_enc_settings * settings);
#if defined(__cplusplus) && !defined(__ISPC_NO_EXTERN_C)
} /* end extern C */
#endif // __cplusplus
#ifdef __cplusplus
} /* namespace */
#endif // __cplusplus
#endif // ISPC_E__DEV2_UE4_CLEAN_ENGINE_SOURCE_THIRDPARTY_INTELISPCTEXCOMP_ISPC_TEXCOMP_KERNEL_ISPC_H