You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
1.0 KiB
36 lines
1.0 KiB
2 years ago
|
/*
|
||
|
* Copyright 1993-2013 NVIDIA Corporation. All rights reserved.
|
||
|
*
|
||
|
* Please refer to the NVIDIA end user license agreement (EULA) associated
|
||
|
* with this source code for terms and conditions that govern your use of
|
||
|
* this software. Any use, reproduction, disclosure, or distribution of
|
||
|
* this software and related documentation outside the terms of the EULA
|
||
|
* is strictly prohibited.
|
||
|
*
|
||
|
*/
|
||
|
|
||
|
#pragma once
|
||
|
|
||
|
#ifndef _RENDERCHECK_D3D11_H_
|
||
|
#define _RENDERCHECK_D3D11_H_
|
||
|
|
||
|
#include <stdio.h>
|
||
|
#include <stdlib.h>
|
||
|
#include <string.h>
|
||
|
#include <assert.h>
|
||
|
#include <d3d11.h>
|
||
|
|
||
|
class CheckRenderD3D11
|
||
|
{
|
||
|
public:
|
||
|
|
||
|
CheckRenderD3D11() {}
|
||
|
|
||
|
static HRESULT ActiveRenderTargetToPPM(ID3D11Device *pDevice, const char *zFileName);
|
||
|
static HRESULT ResourceToPPM(ID3D11Device *pDevice, ID3D11Resource *pResource, const char *zFileName);
|
||
|
|
||
|
static bool PPMvsPPM(const char *src_file, const char *ref_file, const char *exec_path,
|
||
|
const float epsilon, const float threshold = 0.0f);
|
||
|
};
|
||
|
|
||
|
#endif
|