Flutter Engine
The Flutter Engine
|
#include "src/gpu/ganesh/d3d/GrD3DPipelineStateBuilder.h"
#include "include/gpu/GrDirectContext.h"
#include "include/gpu/d3d/GrD3DTypes.h"
#include "src/core/SkReadBuffer.h"
#include "src/core/SkTraceEvent.h"
#include "src/gpu/PipelineUtils.h"
#include "src/gpu/ganesh/GrAutoLocaleSetter.h"
#include "src/gpu/ganesh/GrDirectContextPriv.h"
#include "src/gpu/ganesh/GrPersistentCacheUtils.h"
#include "src/gpu/ganesh/GrShaderCaps.h"
#include "src/gpu/ganesh/GrStencilSettings.h"
#include "src/gpu/ganesh/d3d/GrD3DGpu.h"
#include "src/gpu/ganesh/d3d/GrD3DPipeline.h"
#include "src/gpu/ganesh/d3d/GrD3DRenderTarget.h"
#include "src/gpu/ganesh/d3d/GrD3DRootSignature.h"
#include "src/gpu/ganesh/d3d/GrD3DUtil.h"
#include "src/sksl/SkSLCompiler.h"
#include "src/sksl/SkSLProgramKind.h"
#include "src/sksl/SkSLProgramSettings.h"
#include "src/utils/SkShaderUtils.h"
#include <d3dcompiler.h>
Go to the source code of this file.
Functions | |
static gr_cp< ID3DBlob > | GrCompileHLSLShader (GrD3DGpu *gpu, const std::string &hlsl, SkSL::ProgramKind kind) |
static DXGI_FORMAT | attrib_type_to_format (GrVertexAttribType type) |
static void | setup_vertex_input_layout (const GrGeometryProcessor &geomProc, D3D12_INPUT_ELEMENT_DESC *inputElements) |
static D3D12_BLEND | blend_coeff_to_d3d_blend (skgpu::BlendCoeff coeff) |
static D3D12_BLEND | blend_coeff_to_d3d_blend_for_alpha (skgpu::BlendCoeff coeff) |
static D3D12_BLEND_OP | blend_equation_to_d3d_op (skgpu::BlendEquation equation) |
static void | fill_in_blend_state (const GrPipeline &pipeline, D3D12_BLEND_DESC *blendDesc) |
static void | fill_in_rasterizer_state (const GrPipeline &pipeline, bool multisampleEnable, const GrCaps *caps, D3D12_RASTERIZER_DESC *rasterizer) |
static D3D12_STENCIL_OP | stencil_op_to_d3d_op (GrStencilOp op) |
static D3D12_COMPARISON_FUNC | stencil_test_to_d3d_func (GrStencilTest test) |
static void | setup_stencilop_desc (D3D12_DEPTH_STENCILOP_DESC *desc, const GrStencilSettings::Face &stencilFace) |
static void | fill_in_depth_stencil_state (const GrProgramInfo &programInfo, D3D12_DEPTH_STENCIL_DESC *dsDesc) |
static D3D12_PRIMITIVE_TOPOLOGY_TYPE | gr_primitive_type_to_d3d (GrPrimitiveType primitiveType) |
gr_cp< ID3D12PipelineState > | create_pipeline_state (GrD3DGpu *gpu, const GrProgramInfo &programInfo, const sk_sp< GrD3DRootSignature > &rootSig, gr_cp< ID3DBlob > vertexShader, gr_cp< ID3DBlob > pixelShader, DXGI_FORMAT renderTargetFormat, DXGI_FORMAT depthStencilFormat, unsigned int sampleQualityPattern) |
Variables | |
static constexpr SkFourByteTag | kHLSL_Tag = SkSetFourByteTag('H', 'L', 'S', 'L') |
static constexpr SkFourByteTag | kSKSL_Tag = SkSetFourByteTag('S', 'K', 'S', 'L') |
|
static |
Definition at line 151 of file GrD3DPipelineStateBuilder.cpp.
|
static |
Definition at line 244 of file GrD3DPipelineStateBuilder.cpp.
|
static |
Definition at line 284 of file GrD3DPipelineStateBuilder.cpp.
|
static |
Definition at line 306 of file GrD3DPipelineStateBuilder.cpp.
gr_cp< ID3D12PipelineState > create_pipeline_state | ( | GrD3DGpu * | gpu, |
const GrProgramInfo & | programInfo, | ||
const sk_sp< GrD3DRootSignature > & | rootSig, | ||
gr_cp< ID3DBlob > | vertexShader, | ||
gr_cp< ID3DBlob > | pixelShader, | ||
DXGI_FORMAT | renderTargetFormat, | ||
DXGI_FORMAT | depthStencilFormat, | ||
unsigned int | sampleQualityPattern | ||
) |
Definition at line 463 of file GrD3DPipelineStateBuilder.cpp.
|
static |
Definition at line 319 of file GrD3DPipelineStateBuilder.cpp.
|
static |
Definition at line 418 of file GrD3DPipelineStateBuilder.cpp.
|
static |
Definition at line 348 of file GrD3DPipelineStateBuilder.cpp.
|
static |
Definition at line 448 of file GrD3DPipelineStateBuilder.cpp.
|
static |
Definition at line 73 of file GrD3DPipelineStateBuilder.cpp.
|
static |
Definition at line 410 of file GrD3DPipelineStateBuilder.cpp.
|
static |
Definition at line 209 of file GrD3DPipelineStateBuilder.cpp.
|
static |
Definition at line 366 of file GrD3DPipelineStateBuilder.cpp.
|
static |
Definition at line 388 of file GrD3DPipelineStateBuilder.cpp.
|
staticconstexpr |
Definition at line 524 of file GrD3DPipelineStateBuilder.cpp.
|
staticconstexpr |
Definition at line 525 of file GrD3DPipelineStateBuilder.cpp.