Optimize text formatting in various places
This commit is contained in:
@@ -329,10 +329,10 @@ bool GPUDeviceDX12::Init()
|
||||
// Spawn some info about the hardware
|
||||
D3D12_FEATURE_DATA_D3D12_OPTIONS options;
|
||||
VALIDATE_DIRECTX_RESULT(_device->CheckFeatureSupport(D3D12_FEATURE_D3D12_OPTIONS, &options, sizeof(options)));
|
||||
LOG(Info, "Tiled Resources Tier: {0}", options.TiledResourcesTier);
|
||||
LOG(Info, "Resource Binding Tier: {0}", options.ResourceBindingTier);
|
||||
LOG(Info, "Conservative Rasterization Tier: {0}", options.ConservativeRasterizationTier);
|
||||
LOG(Info, "Resource Heap Tier: {0}", options.ResourceHeapTier);
|
||||
LOG(Info, "Tiled Resources Tier: {0}", (int32)options.TiledResourcesTier);
|
||||
LOG(Info, "Resource Binding Tier: {0}", (int32)options.ResourceBindingTier);
|
||||
LOG(Info, "Conservative Rasterization Tier: {0}", (int32)options.ConservativeRasterizationTier);
|
||||
LOG(Info, "Resource Heap Tier: {0}", (int32)options.ResourceHeapTier);
|
||||
|
||||
// Init device limits
|
||||
{
|
||||
|
||||
@@ -1899,13 +1899,14 @@ bool GPUDeviceVulkan::Init()
|
||||
{
|
||||
dataPtr++;
|
||||
const int32 version = *dataPtr++;
|
||||
if (version == VK_PIPELINE_CACHE_HEADER_VERSION_ONE)
|
||||
const int32 versionExpected = VK_PIPELINE_CACHE_HEADER_VERSION_ONE;
|
||||
if (version == versionExpected)
|
||||
{
|
||||
dataPtr += VK_UUID_SIZE / sizeof(int32);
|
||||
}
|
||||
else
|
||||
{
|
||||
LOG(Warning, "Bad validation cache file, version: {0}, expected: {1}", version, VK_PIPELINE_CACHE_HEADER_VERSION_ONE);
|
||||
LOG(Warning, "Bad validation cache file, version: {0}, expected: {1}", version, versionExpected);
|
||||
data.Clear();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user