[D3D12] Code style fixes
This commit is contained in:
@@ -399,12 +399,12 @@ PrimitiveConverter::ConversionResult PrimitiveConverter::ConvertPrimitives(
|
||||
}
|
||||
} else if (source_type == PrimitiveType::kTriangleStrip ||
|
||||
source_type == PrimitiveType::kLineStrip) {
|
||||
#if XE_ARCH_AMD64
|
||||
// Replace the reset index with the maximum representable value - vector OR
|
||||
// gives 0 or 0xFFFF/0xFFFFFFFF, which is exactly what is needed.
|
||||
// Allocations in the target index buffer are aligned with 16-byte
|
||||
// granularity, and within 16-byte vectors, both the source and the target
|
||||
// start at the same offset.
|
||||
#if XE_ARCH_AMD64
|
||||
union {
|
||||
const __m128i* source_aligned_128;
|
||||
uintptr_t source_aligned_uintptr;
|
||||
|
||||
@@ -7476,9 +7476,10 @@ void DxbcShaderTranslator::WriteResourceDefinitions() {
|
||||
shader_object_.push_back(0);
|
||||
shader_object_.push_back(type_name_offsets[i]);
|
||||
}
|
||||
|
||||
#if 0
|
||||
// Structure members. Structures are not used currently, but were used in the
|
||||
// past, so the code is kept here.
|
||||
#if 0
|
||||
for (uint32_t i = 0; i < uint32_t(RdefTypeIndex::kCount); ++i) {
|
||||
const RdefType& type = rdef_types_[i];
|
||||
const RdefStructMember* struct_members = type.struct_members;
|
||||
|
||||
Reference in New Issue
Block a user