forked from suyu/suyu
Merge pull request #5900 from lioncash/unused-func
video_core: Remove unused functions and variables
This commit is contained in:
commit
245d60bfff
2 changed files with 0 additions and 37 deletions
|
@ -67,9 +67,6 @@ constexpr size_t TOTAL_CONST_BUFFER_BYTES =
|
|||
constexpr size_t NUM_SUPPORTED_VERTEX_ATTRIBUTES = 16;
|
||||
constexpr size_t NUM_SUPPORTED_VERTEX_BINDINGS = 16;
|
||||
|
||||
constexpr size_t MAX_TEXTURES = 192;
|
||||
constexpr size_t MAX_IMAGES = 48;
|
||||
|
||||
struct TextureHandle {
|
||||
constexpr TextureHandle(u32 data, bool via_header_index) {
|
||||
const Tegra::Texture::TextureHandle handle{data};
|
||||
|
|
|
@ -169,40 +169,6 @@ template <u32 GOB_EXTENT>
|
|||
return Common::DivCeil(AdjustMipSize(size, level), block_size);
|
||||
}
|
||||
|
||||
[[nodiscard]] constexpr u32 LayerSize(const TICEntry& config, PixelFormat format) {
|
||||
return config.Width() * config.Height() * BytesPerBlock(format);
|
||||
}
|
||||
|
||||
[[nodiscard]] constexpr bool HasTwoDimsPerLayer(TextureType type) {
|
||||
switch (type) {
|
||||
case TextureType::Texture2D:
|
||||
case TextureType::Texture2DArray:
|
||||
case TextureType::Texture2DNoMipmap:
|
||||
case TextureType::Texture3D:
|
||||
case TextureType::TextureCubeArray:
|
||||
case TextureType::TextureCubemap:
|
||||
return true;
|
||||
case TextureType::Texture1D:
|
||||
case TextureType::Texture1DArray:
|
||||
case TextureType::Texture1DBuffer:
|
||||
return false;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
[[nodiscard]] constexpr bool HasTwoDimsPerLayer(ImageType type) {
|
||||
switch (type) {
|
||||
case ImageType::e2D:
|
||||
case ImageType::e3D:
|
||||
case ImageType::Linear:
|
||||
return true;
|
||||
case ImageType::e1D:
|
||||
case ImageType::Buffer:
|
||||
return false;
|
||||
}
|
||||
UNREACHABLE_MSG("Invalid image type={}", static_cast<int>(type));
|
||||
}
|
||||
|
||||
[[nodiscard]] constexpr std::pair<int, int> Samples(int num_samples) {
|
||||
switch (num_samples) {
|
||||
case 1:
|
||||
|
|
Loading…
Reference in a new issue