Repository navigation
Merged
Conversation
…ure even in Editor
…texture output + CopyTexToBuf, drop editor_sync_compilation
…d fix shader warnings
…nd remaining loop warnings
…ll tap evaluation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
1. Compute Shader Compile-Time Optimization (4.3× – 6.7× faster cold builds)
55f7a45): Split monolithic encoder into 12 per-block LDR/HDR.computefiles (4x4..12x12), unified output toRWTexture2D<uint4>+ lightweightAstcGpuBufferCopy.compute(CopyTexToBuf), halving total encoder variants from 72 → 36 and removing invalid#pragma editor_sync_compilation.1002145,49e19ed,d61b617): Consolidated every heavy function inAstcGpuCore.hlsl&AstcGpuColor.hlslto single inlined call sites (AstcQuantizeEndpoints3→1,AstcFitSubsetEndpoints2→1,AstcComputeWeightGrid1P/2P/Plane12→1,AstcEncodeBise2→1,AstcQuantizeWeight4→2,AstcComputeInfillTap4→2 viaASTC_EVAL_INFILL_PAIR, and unified HDR 2-pass color quantization).49e19ed,2512a13,eb2f3f8): Packedg_AstcGrid0/1/Uq+g_AstcBiseValsinto a singleuint4 g_AstcGrid[ASTC_MAX_GRID],g_AstcEpCodes/BestEpCodesintouint2,g_AstcHdrCodes/RawV/CandCodes/UqVintouint4 g_AstcHdrWork[6], and HDRg_AstcPackedBlockintouint4pixel pairs — reducing mutablestaticarrays from 11 → 3 (LDR) / 4 (HDR) and completely eliminatingwarning X4714.2. Zero Shader Warnings Across All 5 Platforms
AstcQuantizeWeight/AstcQuantizeColorRange/AstcUnquantizeColor/AstcPack5Trits/AstcPack3Quints/AstcEncodeBlockearly-return & uninitialized variable warnings (100189e,49e19ed).AstcComputeWeightGrid2Pagainst compile-time division by zero.[loop]warnings inEncodeMed& HDREncodeFast(2512a13) and removed unsupported#pragma editor_sync_compilationfromAstcGpuMipGenerator.compute.3. Editor & Sample Fixes
Encoder.CanCreateAstcTexturenow consistently checksSystemInfo.IsFormatSupportedeven in the Editor (3a066d6), avoidingTexture creation failed/NullReferenceExceptionon non-ASTC desktop Editors.Sample.csminimal without KTX fallback (45e3379).Cold Build Time Comparison (All 6 Block Sizes Separate, Zero Runtime Regression)
Verification
.metaintegrity).