Diligent Engine  v.2.4.g
Namespaces | Macros
GenerateMips.cpp File Reference
#include "pch.h"
#include "GenerateMips.hpp"
#include "d3dx12_win.h"
#include "RenderDeviceD3D12Impl.hpp"
#include "CommandContext.hpp"
#include "TextureViewD3D12Impl.hpp"
#include "TextureD3D12Impl.hpp"
#include "GenerateMips/GenerateMipsLinearCS.h"
#include "GenerateMips/GenerateMipsLinearOddCS.h"
#include "GenerateMips/GenerateMipsLinearOddXCS.h"
#include "GenerateMips/GenerateMipsLinearOddYCS.h"
#include "GenerateMips/GenerateMipsGammaCS.h"
#include "GenerateMips/GenerateMipsGammaOddCS.h"
#include "GenerateMips/GenerateMipsGammaOddXCS.h"
#include "GenerateMips/GenerateMipsGammaOddYCS.h"

Namespaces

 Diligent
 The library uses Direct3D-style math:
 

Macros

#define CreatePSO(PSO, ShaderByteCode)
 

Macro Definition Documentation

◆ CreatePSO

#define CreatePSO (   PSO,
  ShaderByteCode 
)
Value:
PSODesc.CS.pShaderBytecode = ShaderByteCode; \
PSODesc.CS.BytecodeLength = sizeof(ShaderByteCode); \
hr = pd3d12Device->CreateComputePipelineState(&PSODesc, __uuidof(PSO), reinterpret_cast<void**>(static_cast<ID3D12PipelineState**>(&PSO))); \
CHECK_D3D_RESULT_THROW(hr, "Failed to create Pipeline state for mipmap generation"); \
PSO->SetName(L"Generate mips PSO");