[D3D12] Fix syntax warnings reported by Clang
This commit is contained in:
parent
4f95e094e4
commit
b77e6eb8e6
|
@ -156,7 +156,7 @@ void* D3D12PrimitiveProcessor::RequestHostConvertedIndexBufferForCurrentFrame(
|
||||||
(coalign_for_simd ? XE_GPU_PRIMITIVE_PROCESSOR_SIMD_SIZE : 0),
|
(coalign_for_simd ? XE_GPU_PRIMITIVE_PROCESSOR_SIMD_SIZE : 0),
|
||||||
index_size, nullptr, nullptr, &gpu_address);
|
index_size, nullptr, nullptr, &gpu_address);
|
||||||
if (!mapping) {
|
if (!mapping) {
|
||||||
return false;
|
return nullptr;
|
||||||
}
|
}
|
||||||
if (coalign_for_simd) {
|
if (coalign_for_simd) {
|
||||||
ptrdiff_t coalignment_offset =
|
ptrdiff_t coalignment_offset =
|
||||||
|
|
|
@ -70,12 +70,11 @@ class PipelineCache {
|
||||||
|
|
||||||
// Retrieves the shader modification for the current state. The shader must
|
// Retrieves the shader modification for the current state. The shader must
|
||||||
// have microcode analyzed.
|
// have microcode analyzed.
|
||||||
DxbcShaderTranslator::Modification
|
DxbcShaderTranslator::Modification GetCurrentVertexShaderModification(
|
||||||
PipelineCache::GetCurrentVertexShaderModification(
|
|
||||||
const Shader& shader,
|
const Shader& shader,
|
||||||
Shader::HostVertexShaderType host_vertex_shader_type) const;
|
Shader::HostVertexShaderType host_vertex_shader_type) const;
|
||||||
DxbcShaderTranslator::Modification
|
DxbcShaderTranslator::Modification GetCurrentPixelShaderModification(
|
||||||
PipelineCache::GetCurrentPixelShaderModification(const Shader& shader) const;
|
const Shader& shader) const;
|
||||||
|
|
||||||
// If draw_util::IsRasterizationPotentiallyDone is false, the pixel shader
|
// If draw_util::IsRasterizationPotentiallyDone is false, the pixel shader
|
||||||
// MUST be made nullptr BEFORE calling this!
|
// MUST be made nullptr BEFORE calling this!
|
||||||
|
|
Loading…
Reference in New Issue