// basis_file_headers.h // Copyright (C) 2019-2020 Binomial LLC. All Rights Reserved. // // 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. #pragma once #include "basisu_transcoder_internal.h" namespace basist { // Slice desc header flags enum basis_slice_desc_flags { … }; #pragma pack(push) #pragma pack(1) struct basis_slice_desc { … }; // File header files enum basis_header_flags { … }; // The image type field attempts to describe how to interpret the image data in a Basis file. // The encoder library doesn't really do anything special or different with these texture types, this is mostly here for the benefit of the user. // We do make sure the various constraints are followed (2DArray/cubemap/videoframes/volume implies that each image has the same resolution and # of mipmap levels, etc., cubemap implies that the # of image slices is a multiple of 6) enum basis_texture_type { … }; enum { … }; enum class basis_tex_format { … }; struct basis_file_header { … }; #pragma pack (pop) } // namespace basist