summaryrefslogtreecommitdiff
path: root/Runtime/GfxDevice/VramLimits.h
blob: 238f260596649c202df5e058bc8465a7de2b2d31 (plain)
1
2
3
4
5
6
7
8
9
10
11
#pragma once

// Various limits for what we can do based on VRAM size

#define kVRAMEnoughForLargeShadowmaps 480	// VRAM MB after which we allow even higher resolution shadow maps

#define kVRAMMaxFreePortionForShadowMap 0.3f // allow single shadowmap to take 30% of possibly free VRAM
#define kVRAMMaxFreePortionForTexture 0.4f // allow single texture to take 40% of possibly free VRAM


int ChooseSuitableFSAALevel( int width, int height, int backbufferBPP, int frontbufferBPP, int depthBPP, int fsaa );