forked from blender/blender
Fix_105606_MetalTextureUploadRegression #1
Closed
Michael Parkin-White
wants to merge 17 commits from
When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
Fix_105606_MetalTextureUploadRegression
into Fix_103605_MetalBarycentrics
pull from: Fix_105606_MetalTextureUploadRegression
merge into: Jason-Fielder:Fix_103605_MetalBarycentrics
Jason-Fielder:main
Jason-Fielder:Fix_129661_MTLContext_freed_before_GPU_finished
Jason-Fielder:Metal_address_memory_leaks
Jason-Fielder:Metal_fix_parallel_compilation_early_shutdown_2
Jason-Fielder:Metal_fix_missing_gpu_syncs
Jason-Fielder:Metal_parallel_compilation_support
Jason-Fielder:Fix_126542_uv_edge_overlays_in_Metal
Jason-Fielder:im_store_fast_film
Jason-Fielder:im_store_fast_rt
Jason-Fielder:Fix_70036_fix_retina_scaling_of_animations
Jason-Fielder:MetalSynchronization_Cleanup
Jason-Fielder:eevee_next_deferred_light_unroll_AS
Jason-Fielder:Metal_LocalAtomicROG
Jason-Fielder:Metal_EEVEENext_AtomicShadowDefault
Jason-Fielder:Metal_EEVEENext_enable_loadstore_pass
Jason-Fielder:Fix_121020_CurveIndexBufferGenerationTriangles
Jason-Fielder:MetalCompressedTextureDataUploadFix
Jason-Fielder:MetalEEVEENext_RegisterPressureOpti
Jason-Fielder:im_store_fast_rp
Jason-Fielder:EEVEE_NEXT_ShadowHang
Jason-Fielder:Metal_FixReadWriteQualifier
Jason-Fielder:MetalAMDSubpassTransitionSupport
Jason-Fielder:Fix_120038_PossibleFixForBuildBotCrash
Jason-Fielder:MetalAtomicFallbackTextureAssertFix
Jason-Fielder:EEVEENextHorizonScanTuningMetal
Jason-Fielder:EEVEENextFurtherFilmSpecialization
Jason-Fielder:Fix_109363_MetalGPencilFill
Jason-Fielder:Fix_119195
Jason-Fielder:Fix_118868
Jason-Fielder:MetalCryptomatteFilmFix
Jason-Fielder:MetalAMDDOFExperiment
Jason-Fielder:GPU_image_fast_op
Jason-Fielder:MetalLightProbeLoopUnrollFix
Jason-Fielder:MetalFixSSBOFromVBOSizeAssert
Jason-Fielder:MetalFixSmallTypePushConstants
Jason-Fielder:Fix_109739
Jason-Fielder:MetalGPUContextCreateRenderBoundaryFix
Jason-Fielder:MetalFixSurfelStorageBufRead
Jason-Fielder:EEVEENext_ShadowTagOpti
Jason-Fielder:MetalTestSyncFix
Jason-Fielder:Fix_Metal_EEVEENextViewporMotionBlur
Jason-Fielder:MetalBackendPlatformCompatibilityRefactor
Jason-Fielder:EEVEENextMotionBlurUninitializedMembers
Jason-Fielder:Fix_MetalZFightingEEVEENext
Jason-Fielder:Fix_117169
Jason-Fielder:GPUMultipleCompilationThreads
Jason-Fielder:Fix_116414_EEVEEShaderComp
Jason-Fielder:GPUShaderCustomParameterAPI
Jason-Fielder:EEVEEHizOpti_LoadStoreFast
Jason-Fielder:Fix_116216
Jason-Fielder:Fix_116128_MetalEEVEENextDeferredLightSync
Jason-Fielder:MetalTexAtomicCompIssueDec30
Jason-Fielder:GPU_Shader_Specialization_API
Jason-Fielder:EEVEE_Next_VSM_AttachmentlessFB
Jason-Fielder:Fix_116121
Jason-Fielder:EEVEEMetalTexAtomicsV2_flat
Jason-Fielder:MetalRemoveSmallTilesOpti
Jason-Fielder:GPU_framebuffer_explicit_loadstore_flag
Jason-Fielder:MTL_increased_attachment_support
Jason-Fielder:CleanupTextureViewFlags_115269
Jason-Fielder:GPU_ambiguous_types_fix_23nov
Jason-Fielder:MetalAttachmentLessFBSupport
Jason-Fielder:HiZ_Dirty_flag
Jason-Fielder:Fix107025_UVStretchColor
Jason-Fielder:Fix_114414_Alternative
Jason-Fielder:Fix_114192_AnimPlayerResizeMetal
Jason-Fielder:MetalSafeFreeListCleanup
Jason-Fielder:MetalEEVEEShadowAtomicFallback_flat
Jason-Fielder:MetalFreeListFrameDeferralFix
Jason-Fielder:MetalWorkbenchExportFix
Jason-Fielder:Blender4_EEVEE_Metal_export_render_fix
Jason-Fielder:MetalStorageBufferHostSync2
Jason-Fielder:GPUMetalTextureTests_EEVEENext
Jason-Fielder:WorkbenchNEXT_ShadowsMetal
Jason-Fielder:eevee_next_metal_shadow_opti_tbdr
Jason-Fielder:FixEEVEENextSyncMetal
Jason-Fielder:MetalLatencyControlImprovementSep23
Jason-Fielder:GPUPlatformArchitectureParam
Jason-Fielder:GPU_Shader_material_uuid_debug_name
Jason-Fielder:metal_texture_atomics_support
Jason-Fielder:MetalStorageBuf_CopySub
Jason-Fielder:Fix_112258_VolumeLayerCreateInfoFlag
Jason-Fielder:EEVEENext_MaterialOptimizationTextInfo
Jason-Fielder:GPU_FrameBufferLoadStore_refactor
Jason-Fielder:EEVEENext_Shadows_ResolveOutOfBoundsAccess
Jason-Fielder:GPU_Metal_raster_order_group_support
Jason-Fielder:GPU_imageStoreFast
Jason-Fielder:MetalComputeStateCleanup
Jason-Fielder:GPU_FixMissingGPULayerBits
Jason-Fielder:GPU_memoryless_texture_support
Jason-Fielder:Fix_111260_UpdateDefaultWindowColorspace_MacOS_EDR
Jason-Fielder:MetalBatchShaderFix
Jason-Fielder:DrwCurvesOptimalPrimtypeMetal
Jason-Fielder:MetalFixCyclesDisplaySync
Jason-Fielder:Fix110372_MetalCurveHandles
Jason-Fielder:EEVEENext_MetalUsageFlags_Jul17
Jason-Fielder:EEVEENext_MetalUsageFlags
Jason-Fielder:EEVEENext_AttributeBufSlotFix
Jason-Fielder:EEVEENext_CryptomatteOOBWriteFix
Jason-Fielder:EEVEENextShadows_Metal_Jul13
Jason-Fielder:Fix_109389_main
Jason-Fielder:Fix_106905
Jason-Fielder:Fix_109389
Jason-Fielder:Fix_108792
Jason-Fielder:MetalBufferClearingAndRead_Jun8
Jason-Fielder:MetalEEVEENext_ShadowUnitTestsBringUp_Jun8
Jason-Fielder:MetalEEVEENext_ShadowsLight_Jun8
Jason-Fielder:MetalEEVEENext_DrawResource_Jun8
Jason-Fielder:MetalMathTests_Jun8
Jason-Fielder:MetalFailingTextureUnitTests_Jun8
Jason-Fielder:MetalRemoveCommandBufferError
Jason-Fielder:GPUTextureUsageAttachment_Metal
Jason-Fielder:Fix_108500
Jason-Fielder:Fix_107766
Jason-Fielder:Fix_107159
Jason-Fielder:MetalMemoryPool_Flushing
Jason-Fielder:MetalDebuggerImprovements
Jason-Fielder:MetalHighResTexture_Fix_2
Jason-Fielder:MetalHighResTexture_Fix
Jason-Fielder:MetalSharedCommandQueue_2
Jason-Fielder:MetalStencilViewSupport_And_Refactor
Jason-Fielder:Fix_105830_3_6
Jason-Fielder:Fix_105830
Jason-Fielder:MetalSSBO_Support_Apr20
Jason-Fielder:Metal_Render_Leak_Fix
Jason-Fielder:MetalBackend_PlatformSupport
Jason-Fielder:Metal_EEVEENext_ShaderGLSLTypeCompatibility
Jason-Fielder:Metal_EEVEENext_Shadow_Bringup_Part1
Jason-Fielder:MetalEEVEENext_TextureViewCompatibility
Jason-Fielder:Metal_KeepTF_ForRefine
Jason-Fielder:EEVEENextTextureView_UsageFlags_Metal
Jason-Fielder:MetalIncreaseCompilerLimit
Jason-Fielder:MetalEEVEENext_shaderCompilation
Jason-Fielder:Fix_105450
Jason-Fielder:EEVEETextureFlagOptimization2
Jason-Fielder:EEVEETextureFlagOptimization
Jason-Fielder:Fix_106704
Jason-Fielder:Fix_106773
Jason-Fielder:MetalFixNullBuffer
Jason-Fielder:MetalTextureGradSupport
Jason-Fielder:Fix_106103
Jason-Fielder:Fix_106568
Jason-Fielder:Fix_106431
Jason-Fielder:EEVEE_SSR_OptiMetal
Jason-Fielder:WorkbenchTextureUsageOpti
Jason-Fielder:MTLTextureDataOpti_GLUtil
Jason-Fielder:MetalOptimizations_SSR_TexFlags_Mar3
Jason-Fielder:GPUTextureView_ResolveForMetal
Jason-Fielder:Fix_104266_MetalAMDRefraction_2
Jason-Fielder:Fix_104012
Jason-Fielder:GPU_frame_capture_support_2
Jason-Fielder:MetalNullUniforms_Fix
Jason-Fielder:Fix_UncachedMaterialLeak
Jason-Fielder:MetalSafeFreeList_Fix_Rel3_5
Jason-Fielder:Fix_103605_MetalBarycentrics
Jason-Fielder:Fix_104466
Jason-Fielder:Fix_105449
Jason-Fielder:MetalExplicitUBOBindIndices
Jason-Fielder:EEVEE_Intel_Fixes_3_5_Rel
Jason-Fielder:Fix_105280
Jason-Fielder:eevee_lightcache_tex_usage_flags
Jason-Fielder:viewport_commits/MetalSafeFreeList_Fix_Rel3_5
Jason-Fielder:FixOutvarReplacementEdgeCase
Jason-Fielder:FixMetalUniformlookup
Jason-Fielder:Fix_104016
Jason-Fielder:FixGpencil3DStrokeFill_2
Jason-Fielder:Fix_T103398_new
Jason-Fielder:Fix_EEVEECachedPassOptimizationAssert_REL
Jason-Fielder:MetalAMDPerformanceEEVEE_2
Jason-Fielder:FixMaterialOptimisationAssertion
Jason-Fielder:NodeGraphOptimization_v3
Jason-Fielder:Fix_T103397_v3
Jason-Fielder:EEVEE_Intel_Fixes_3
Jason-Fielder:MetalSafeFreeList_FixAndOptimise_3
Jason-Fielder:Fix_104282
Jason-Fielder:gpencil-new-data-proposal
Jason-Fielder:refactor-mesh-face-generic
Jason-Fielder:temp-sculpt-roll-mapping
Jason-Fielder:sculpt-dev
Jason-Fielder:refactor-mesh-sharp-face-generic
Jason-Fielder:refactor-mesh-corners-generic
Jason-Fielder:tmp-volume-matrix-api-update
Jason-Fielder:tmp-eevee-shadow-commit-mp
Jason-Fielder:universal-scene-description
Jason-Fielder:cycles_path_guiding
Jason-Fielder:temp-vulkan-descriptor-sets
Jason-Fielder:tmp-eevee-shadow-commit
Jason-Fielder:temp-angavrilov
Jason-Fielder:asset-shelf
Jason-Fielder:brush-assets-project
Jason-Fielder:blender-v3.3-release
Jason-Fielder:tmp-workbench-rewrite2
Jason-Fielder:temp-T101739-fix-seam-bleeding-non-manifold
Jason-Fielder:tmp-mak-012623
Jason-Fielder:temp-bundled-assets
Jason-Fielder:asset-lite-greasepencil
Jason-Fielder:temp-pbvh-split
Jason-Fielder:temp-pbvh-texpaint-automasking
Jason-Fielder:microfacet_hair
Jason-Fielder:tmp-worbench-rewrite2-optimizations
Jason-Fielder:temp-offset-array-ref
Jason-Fielder:blender-v2.93-release
Jason-Fielder:blender-projects-basics
Jason-Fielder:temp-pbvh-seam-texturing-tweaks
Jason-Fielder:temp-nodes-group-declarations
Jason-Fielder:refactor-mesh-sharp-edge-generic
Jason-Fielder:temp-asset-library-all
Jason-Fielder:refactor-mesh-uv-map-generic
Jason-Fielder:refactor-mesh-position-generic
Jason-Fielder:temp-T102440
Jason-Fielder:temp-rbf-pose-blender
Jason-Fielder:geometry-nodes-tetrahedralization
Jason-Fielder:nodes-matrix-types
Jason-Fielder:temp-xr-painting
Jason-Fielder:blender-v3.4-release
Jason-Fielder:geometry-nodes-simulation
Jason-Fielder:bli-matrix-template
Jason-Fielder:temp-linux-35x-libs
Jason-Fielder:refactor-mesh-corner-normals-lazy
Jason-Fielder:temp-py-gpubatch-draw-advanced
Jason-Fielder:xr-dev
Jason-Fielder:temp-vulkan-shader
Jason-Fielder:bevelv2
Jason-Fielder:soc-2022-soft-bodies
Jason-Fielder:arcpatch-D16436
Jason-Fielder:tmp-dynamic-usd
Jason-Fielder:temp-image-engine
Jason-Fielder:tmp-vfx-platform-2023
Jason-Fielder:soc-2022-many-lights-sampling
Jason-Fielder:tracking_tools
Jason-Fielder:nla-scale-fix
Jason-Fielder:principled-v2
Jason-Fielder:temp-ui-cpp
Jason-Fielder:temp-ghost-vulkan
Jason-Fielder:tmp-libs-2.93-lts
Jason-Fielder:temp-T97352-3d-texturing-seam-bleeding-b2
Jason-Fielder:temp-xr-virtual-camera-experiment
Jason-Fielder:temp-vse-retiming-tool
Jason-Fielder:gpencil-next
Jason-Fielder:temp-sculpt-brush-channel
Jason-Fielder:asset-browser-grid-view
Jason-Fielder:temp-asset-representation
Jason-Fielder:temp-gpencil-automask
Jason-Fielder:tmp_libs_34
Jason-Fielder:temp-T101905-gpu-backend-argument
Jason-Fielder:node-add-asset-menu
Jason-Fielder:temp-collection-objects-link-multiple
Jason-Fielder:temp-texture-painting-gpu
Jason-Fielder:overlay-next
Jason-Fielder:tmp-workbench-perf-experiment
Jason-Fielder:tmp_usd_import_unbound_mtls
Jason-Fielder:tmp-drw-split-matrix
Jason-Fielder:temp-sculpt-normals-masking
Jason-Fielder:temp-sculpt-cavity-mask
Jason-Fielder:temp-pbvh-vbos
Jason-Fielder:tmp-usd-alab-v2-T100452
Jason-Fielder:refactor-mesh-selection-generic
Jason-Fielder:temp-T96708-brush-texture-refactoring
Jason-Fielder:temp-chunk-list
Jason-Fielder:feature-imformat
Jason-Fielder:temp-geometry-nodes-evaluator-refactor
Jason-Fielder:refactor-mesh-bevel-weight-generic
Jason-Fielder:temp-chunked-list
Jason-Fielder:temp-outliner-new-element-storage
Jason-Fielder:refactor-mesh-remove-pointers
Jason-Fielder:soc-2022-text-usability
Jason-Fielder:refactor-mesh-material-index-generic
Jason-Fielder:drw-manager-next
Jason-Fielder:refactor-mesh-hide-generic
Jason-Fielder:blender-v3.2-release
Jason-Fielder:sculpt_curve_collisions
Jason-Fielder:temp-anim-editors-redo-panel-D14960-D14977
Jason-Fielder:retopo_transform
Jason-Fielder:temp-libepoxy
Jason-Fielder:temp-T99046-platform-reference-images
Jason-Fielder:geometry-nodes-rigid-body-integration
Jason-Fielder:file-browser-grid-view
Jason-Fielder:temp-legacy-mesh-format-option
Jason-Fielder:arcpatch-D14645
Jason-Fielder:soc-2022-waveform-drawing
Jason-Fielder:temp-T95933-object-mode-curve-selection
Jason-Fielder:temp-deform-curves-on-surface
Jason-Fielder:cycles_oneapi
Jason-Fielder:temp-viewport-compositor-merge
Jason-Fielder:temp-texpaint-automasking
Jason-Fielder:temp-deform-curves-with-surface
Jason-Fielder:asset-greasepencil
Jason-Fielder:temp-T99046-render-test-increase-fail-threshold
Jason-Fielder:temp-T98708-gpu-conservative-depth
Jason-Fielder:lineart-shadow
Jason-Fielder:temp-lineart-contained
Jason-Fielder:cleanup-id-override-const
Jason-Fielder:temp-T98375-share-gpu-textures
Jason-Fielder:wintab
Jason-Fielder:temp-T97352-3d-texturing-seam-bleeding
Jason-Fielder:temp-T97905-compositor-meta-data
Jason-Fielder:lineart-cas-2
Jason-Fielder:temp-T97272
Jason-Fielder:temp-T97907-compositor-meta-data
Jason-Fielder:temp-T96952
Jason-Fielder:tmp-usd-mak-c87f6242
Jason-Fielder:temp-outliner-library-override-hierarchy
Jason-Fielder:lineart-object-load
Jason-Fielder:tmp-eevee-next-merge
Jason-Fielder:draw-deferred-compilation-experiment
Jason-Fielder:soc-2021-porting-modifiers-to-nodes-remesh-voxel
Jason-Fielder:blender-v2.83-release
Jason-Fielder:tmp_lib_update_32
Jason-Fielder:temp-mesh-cpp
Jason-Fielder:temp-viewport-compositor-compiler
Jason-Fielder:temp-T96710-pbvh-pixels
Jason-Fielder:tmp-new-gpu-codegen
Jason-Fielder:devirtualizer
Jason-Fielder:temp-T96709-painting-target
Jason-Fielder:temp-collection-assets
Jason-Fielder:temp-lineart-embree
Jason-Fielder:temp-multi-function-eval-varray
Jason-Fielder:temp-sculpt-colors
Jason-Fielder:soc-2021-curves
Jason-Fielder:blender-v3.1-release
Jason-Fielder:temp-vertex-paint
Jason-Fielder:temp-vse-channels-edge-panning
Jason-Fielder:eevee-rewrite
Jason-Fielder:temp-library-overrides-outliner
Jason-Fielder:cycles_hydra
Jason-Fielder:temp-3d-texturing-brush-b
Jason-Fielder:temp-abc-features
Jason-Fielder:tmp-transform-navigate
Jason-Fielder:temp-image-buffer-rasterizer
Jason-Fielder:soc-2021-porting-modifiers-to-nodes-remesh-blocks
Jason-Fielder:temp-3d-texture-brush-prototype
Jason-Fielder:temp-fix-normals-custom-data
Jason-Fielder:viewport-compositor
Jason-Fielder:bli-math-basic-types
Jason-Fielder:soc-2021-simulation-display
Jason-Fielder:greasepencil-object
Jason-Fielder:temp-license-header-spdx
Jason-Fielder:KTX_support
Jason-Fielder:gsoc-2021-porting-modifiers-to-nodes-solidify
Jason-Fielder:2d
Jason-Fielder:gltf_vtree
Jason-Fielder:soc-2021-porting-modifiers-to-nodes-decimate
Jason-Fielder:temp-T95279-remap-referenced-data
Jason-Fielder:temp-gpu-image-engine
Jason-Fielder:tmp-eevee-rewrite-compilation-error
Jason-Fielder:draw-viewport-data
Jason-Fielder:temp-T94900-b
Jason-Fielder:temp-T94900-gpu-viewport-default-layers
Jason-Fielder:temp-T94185-id-remapper-ui
Jason-Fielder:tmp-workbench-shader-create-infos
Jason-Fielder:blender-v3.0-release
Jason-Fielder:temp-geometry-nodes-extrude-mesh
Jason-Fielder:tmp-T95052
Jason-Fielder:tmp-gpu-polyline-shaders
Jason-Fielder:tmp-gpu-shader-descriptor-2
Jason-Fielder:temp-usd-prev-export2
Jason-Fielder:tmp-core-id-remap-test-cases
Jason-Fielder:temp-vert-normals-cleanup
Jason-Fielder:temp-move-geometry-to-cpp
Jason-Fielder:tmp-vector-template
Jason-Fielder:drw-gpu-wrapper
Jason-Fielder:temp-geometry-nodes-extrude-and-scale
Jason-Fielder:temp-scale-elements-node-test
Jason-Fielder:temp-usd-udim-import
Jason-Fielder:temp-copy-on-write
Jason-Fielder:temp-T94185-id_remapping-experiment-a
Jason-Fielder:temp-llvm-testing
Jason-Fielder:nurbs-opencascade
Jason-Fielder:temp-usd-preview-surf-export
Jason-Fielder:soc-2021-uv-edge-select-support
Jason-Fielder:T93558
Jason-Fielder:temp-gpu-texture-partial-updates
Jason-Fielder:gpu-shader-descriptor
Jason-Fielder:temp-geometry-nodes-text
Jason-Fielder:tmp-vulkan
Jason-Fielder:temp-T90535-usd-alab-material-import
Jason-Fielder:node-tree-update-refactor
Jason-Fielder:temp-sample-sound-node
Jason-Fielder:temp-interface-region-search-cpp
Jason-Fielder:temp-enum-socket
Jason-Fielder:temp-link-portals
Jason-Fielder:temp-unity-build-test
Jason-Fielder:geometry-nodes-level-set-nodes
Jason-Fielder:temp-virtual-array-value-type
Jason-Fielder:soc-2020-io-performance
Jason-Fielder:studio-sprite-fright
Jason-Fielder:temp-cycles-source-reorganize
Jason-Fielder:asset-browser-snap-dragging
Jason-Fielder:temp-python-zstandard
Jason-Fielder:soc-2021-porting-modifiers-to-nodes-merge-by-distance
Jason-Fielder:temp-compositor-cleanups
Jason-Fielder:temp-eevee-gpencil-rewrite
Jason-Fielder:temp-vse-handles
Jason-Fielder:temp-ui-tweaks
Jason-Fielder:xr-controller-support
Jason-Fielder:temp-node-common-cpp
Jason-Fielder:temp-varray-get-set-multiple
Jason-Fielder:soc-2021-uv-editor-improvements
Jason-Fielder:temp-geometry-nodes-output-attributes
Jason-Fielder:soc-2021-knife-tools
Jason-Fielder:temp_test_sc_keymap
Jason-Fielder:cycles-x
Jason-Fielder:temp-field-visualization
Jason-Fielder:soc-2021-curve-fillet
Jason-Fielder:temp_bmesh_multires
Jason-Fielder:temp-cocoa-scroll-acceleration-fix
Jason-Fielder:temp-socket-decl-refactor
Jason-Fielder:fluid-mantaflow-gpu
Jason-Fielder:soc-2021-vse-strip-thumbnails
Jason-Fielder:temp-noise-nodes-cpp
Jason-Fielder:temp-compositor-canvas
Jason-Fielder:T90952
Jason-Fielder:temp-parallel-multi-function
Jason-Fielder:temp-geometry-nodes-fields
Jason-Fielder:grab_walk_fix
Jason-Fielder:soc-2021-adaptive-cloth
Jason-Fielder:temp-geometry-nodes-fields--fields-jacques
Jason-Fielder:temp-cpp-ghc-filesystem
Jason-Fielder:temp-geometry-nodes-fields--fields
Jason-Fielder:temp-geometry-nodes-fields--anonymous-attributes
Jason-Fielder:refactor-idprop-ui-data
Jason-Fielder:compositor-full-frame
Jason-Fielder:temp-runtime-node-def
Jason-Fielder:temp-geometry-nodes-fields-prototype-visualization
Jason-Fielder:temp-geometry-nodes-fields-prototype
Jason-Fielder:temp-multi-function-procedure
Jason-Fielder:soc-2021-porting-modifiers-to-nodes_all
Jason-Fielder:cycles_texture_cache
Jason-Fielder:experimental-build
Jason-Fielder:cycles_procedural_api
Jason-Fielder:soc-2021-porting-modifiers-to-nodes-extrude-and-move
Jason-Fielder:soc-2021-porting-modifiers-to-nodes-extrude
Jason-Fielder:temp-geometry-nodes-expandable-geometry-socket-prototype
Jason-Fielder:fluid-mantaflow-2d
Jason-Fielder:windows_make_docpy
Jason-Fielder:usd-importer-T81257-merge
Jason-Fielder:nodes-update-readonly-tag
Jason-Fielder:geometry-nodes-closest-points
Jason-Fielder:tmp-buildbot-gcc-10
Jason-Fielder:soc-2021-geometry-nodes-regression-test
Jason-Fielder:node-group-single-socket-nodes
Jason-Fielder:curve-nodes-modifier
Jason-Fielder:temp-geometry-nodes-curve-sample
Jason-Fielder:geometry-nodes-unnamed-attributes
Jason-Fielder:temp-nodes-intersect-alt-key
Jason-Fielder:tmp_arcpath-D11868
Jason-Fielder:refactor-vertex-group-names
Jason-Fielder:temp-gpencil-bezier-stroke-type
Jason-Fielder:temp-gpu-uniform-builtin-structs
Jason-Fielder:wintab_fallback_walknav
Jason-Fielder:temp-socket-inspection
Jason-Fielder:temp-long-link-dimming
Jason-Fielder:fixed_width_integers
Jason-Fielder:lineart-bvh
Jason-Fielder:temp-gpencil-camera-reproject
Jason-Fielder:temp-gpu-push-constants
Jason-Fielder:temp-attribute-processor
Jason-Fielder:temp-cpp-type-cleanup
Jason-Fielder:temp-geometry-nodes-curve-deform-node
Jason-Fielder:wintab-logging
Jason-Fielder:fix-tablet-walk
Jason-Fielder:geometry-nodes-raycast
Jason-Fielder:temp-spreadsheet-row-filter
Jason-Fielder:lineart-fn-cached
Jason-Fielder:temp-compact-node-prototype
Jason-Fielder:asset-browser
Jason-Fielder:geometry-nodes-curve-to-points-node
Jason-Fielder:node-editor-edge-pan
Jason-Fielder:eevee-gpencil
Jason-Fielder:asset-system-filelist
Jason-Fielder:temp-geometry-nodes-viewer-node
Jason-Fielder:lineart-fn-thread-loading
Jason-Fielder:tmp-buildbot-cleanup
Jason-Fielder:temp-gpencil-masking
Jason-Fielder:temp-ffmpeg-4.4
Jason-Fielder:temp-attributes-panel
Jason-Fielder:profiler-editor
Jason-Fielder:FixT87160_DSE_Channel_Selection
Jason-Fielder:temp-interface-cpp
Jason-Fielder:geometry-nodes-curve-support
Jason-Fielder:info-editor-cpp
Jason-Fielder:temp-attribute-transfer-node
Jason-Fielder:virtual-array-attributes
Jason-Fielder:temp-pose-slide-D9054
Jason-Fielder:spreadsheet-active-node
Jason-Fielder:ui-asset-view-template
Jason-Fielder:temp-node-tree-pages-prototype
Jason-Fielder:override-outliner-view
Jason-Fielder:temp-geometry-nodes-processor-prototype
Jason-Fielder:temp-any-instead-of-variant
Jason-Fielder:temp-unreachable-abort
Jason-Fielder:temp-spreadsheet-instances
Jason-Fielder:temp-geometry-nodes-instances-api-v2
Jason-Fielder:temp-geometry-nodes-instances-attributes
Jason-Fielder:geometry-nodes-mesh-primitives
Jason-Fielder:temp-asset-tools-prototype
Jason-Fielder:temp-geometry-nodes-mesh-primitive-line
Jason-Fielder:lanpr-under-gp
Jason-Fielder:temp_D10504-2_nla_keyframe_remap_upper_strips
Jason-Fielder:blender-v2.92-release
Jason-Fielder:usd-importer-T81257
Jason-Fielder:temp-spreadsheet-editor-python-prototyping
Jason-Fielder:temp-spreadsheet-editor
Jason-Fielder:override-refactor-tmp-2
Jason-Fielder:temp-derived-node-tree-refactor
Jason-Fielder:T85799
Jason-Fielder:tracking_scopes
Jason-Fielder:temp-icons-fixes
Jason-Fielder:temp_D10504_nla_keyframe_remap_upper_strips
Jason-Fielder:temp-weight_mirror
Jason-Fielder:temp_T76472_graph_editor_fcurve_extrapolation
Jason-Fielder:eevee-closure-lib-cleanup
Jason-Fielder:eevee-dof-refactor
Jason-Fielder:eevee-probe-roughness-fix
Jason-Fielder:eevee-ggx-lut-fix
Jason-Fielder:df0bce3f7d0
Jason-Fielder:temp-geometry-nodes-instances-api
Jason-Fielder:tmp-ocio-v2
Jason-Fielder:temp-nodes-redesign
Jason-Fielder:tracking_proportional_editing_v2
Jason-Fielder:blender-v2.91-release
Jason-Fielder:temp-uv-face-select-no-thresh-when-inside
Jason-Fielder:temp-D10103-nla_support_strip_overlap_during_transform
Jason-Fielder:fracture_modifier
Jason-Fielder:temp-point-distribution-refactor-experiment
Jason-Fielder:temp-experimental-cpp-math-refactor
Jason-Fielder:vfx-clip-ui-update
Jason-Fielder:tmp-T82230-nla_remove_hold_reset_behavior
Jason-Fielder:temp-D8687-directly_select_fcurves
Jason-Fielder:geometry-nodes
Jason-Fielder:soc-2020-testing-frameworks
Jason-Fielder:geometry-nodes-point-separate-node
Jason-Fielder:temp-nla-strip-alignment
Jason-Fielder:temp-atomics-int16
Jason-Fielder:geometry-nodes-deduplicate-float-math
Jason-Fielder:asset-metadata
Jason-Fielder:geometry-nodes-active-modifier-drawing
Jason-Fielder:attribute-accessor
Jason-Fielder:geometry-nodes-attribute-nodes
Jason-Fielder:temp-T82588-box-select-invisible-keys
Jason-Fielder:greasepencil-edit-curve
Jason-Fielder:codesign_error_tracker
Jason-Fielder:outliner-cpp-refactor
Jason-Fielder:temp-fix-headerless-panels-switch-windows
Jason-Fielder:temp-gpencil-fading-modifier
Jason-Fielder:temp-D8915-copy-rotation-remove-sheer
Jason-Fielder:geometry-nodes-boolean-node
Jason-Fielder:temp-T81874-box-select-active-keyframe
Jason-Fielder:geometry-nodes-transform-node
Jason-Fielder:temp-trimesh-sculpt
Jason-Fielder:geometry-tree-evaluation
Jason-Fielder:fcurve-modifier-panels
Jason-Fielder:temp-fcurve-key-insert-follow-curve
Jason-Fielder:temp-fcurve-active-keyframe-D7737
Jason-Fielder:mesh-to-volume-modifier
Jason-Fielder:blender-v2.90-release
Jason-Fielder:soc-2020-fluid-tools
Jason-Fielder:property-search-ui-v2
Jason-Fielder:tmp-T80603
Jason-Fielder:soc-2020-greasepencil-curve
Jason-Fielder:tmp-gldebuglayer
Jason-Fielder:tmp-gltexture
Jason-Fielder:soc-2020-custom-menus
Jason-Fielder:active-fcurve-keyframe
Jason-Fielder:soc-2020-soft-body
Jason-Fielder:newboolean
Jason-Fielder:fail-on-memleak
Jason-Fielder:soc-2020-outliner
Jason-Fielder:soc-2020-production-ready-light-tree-2
Jason-Fielder:soc-2020-info-editor
Jason-Fielder:property-search-ui
Jason-Fielder:temp-ui-button-type-refactor
Jason-Fielder:soc-2020-production-ready-light-tree
Jason-Fielder:particle-solver-dev
Jason-Fielder:tmp-gpu-context-isolation
Jason-Fielder:soc-2020-xr-input
Jason-Fielder:temp-remesh-octree
Jason-Fielder:mac_arm64
Jason-Fielder:tmp-eevee-glsl-cleanup
Jason-Fielder:tmp-pointcloud-render
Jason-Fielder:buildbot-lts
Jason-Fielder:asset-engine--archived
Jason-Fielder:asset-uuid--archived
Jason-Fielder:eevee-motionblur-object
Jason-Fielder:modifier-panels-ui
Jason-Fielder:temp-cycles-tbb
Jason-Fielder:wm-drag-drop-rewrite
Jason-Fielder:temp-lanpr-review
Jason-Fielder:gsoc-2018-many-light-sampling
Jason-Fielder:tmp-eevee-material-refactor
Jason-Fielder:tmp-widget-opti
Jason-Fielder:tmp-texture-sampler
Jason-Fielder:xr-world-navigation
Jason-Fielder:blender-v2.82-release
Jason-Fielder:node-tree-ref
Jason-Fielder:simulation-access-modifier
Jason-Fielder:blenloader-decentralization
Jason-Fielder:temp-test-point-cloud-simulation-depsgraph-integration
Jason-Fielder:functions
Jason-Fielder:builtin-simulation-nodes
Jason-Fielder:performance-test
Jason-Fielder:obj-import-experiments
Jason-Fielder:soc-2019-openxr
Jason-Fielder:vr_scene_inspection
Jason-Fielder:blenloader-api
Jason-Fielder:tmp-workbench-rewrite
Jason-Fielder:id-ensure-unique-memory-address
Jason-Fielder:simulation-tree
Jason-Fielder:greasepencil-refactor
Jason-Fielder:draw-colormanagement
Jason-Fielder:temp-gizmo-decoupled-redraws
Jason-Fielder:fluid-mantaflow
Jason-Fielder:blender-v2.81-release
Jason-Fielder:tmp-overlay-engine
Jason-Fielder:soc-2019-bevel-profiles
Jason-Fielder:temp-npr-gpencil-modifiers
Jason-Fielder:soc-2019-npr
Jason-Fielder:temp-gpencil-drw-engine
Jason-Fielder:soc-2019-embree-gpu
Jason-Fielder:temp-npr-smooth-contour
Jason-Fielder:temp-lanpr-staging
Jason-Fielder:filebrowser_redesign
Jason-Fielder:tmp-eevee-shadowmap-refactor
Jason-Fielder:vamr-openxr-module
Jason-Fielder:sculpt-mode-features
Jason-Fielder:soc-2019-adaptive-cloth
Jason-Fielder:tmp-drw-callbatching
Jason-Fielder:soc-2019-outliner
Jason-Fielder:soc-2019-cycles-procedural
Jason-Fielder:temp-D5423-update
Jason-Fielder:temp-vr-draw-thread
Jason-Fielder:blender-v2.80-release
Jason-Fielder:tmp-batch-cache-cleanup
Jason-Fielder:soc-2019-fast-io
Jason-Fielder:temp-toolsystem-multiwindow
Jason-Fielder:blender2.7
Jason-Fielder:collada
Jason-Fielder:soc-2018-npr
Jason-Fielder:temp-keymap-industry-compat
Jason-Fielder:temp-fracture-modifier-2.8
Jason-Fielder:temp-dna-rename
Jason-Fielder:userpref_redesign
Jason-Fielder:hair_object
Jason-Fielder:motion_curve_fix
Jason-Fielder:collada2.8
Jason-Fielder:cycles_embree
Jason-Fielder:interactive_physics
Jason-Fielder:temp-ui-layout-2.8
Jason-Fielder:cloth-improvements
Jason-Fielder:soc-2018-cycles-volumes
Jason-Fielder:hair_guides_grooming
Jason-Fielder:hair_guides
Jason-Fielder:benchmark
Jason-Fielder:soc-2018-bevel
Jason-Fielder:soc-2018-hair-shader-fixes
Jason-Fielder:temp-udim-images
Jason-Fielder:soc-2018-hair-shader
Jason-Fielder:temp-volume-object
Jason-Fielder:cycles_cryptomatte
Jason-Fielder:temp-eeveelightcache
Jason-Fielder:temp-tab_drag_drop
Jason-Fielder:temp-keymap-save
Jason-Fielder:temp-dynamic-overrides
Jason-Fielder:fracture_modifier-master
Jason-Fielder:ui_layout_gridflow
Jason-Fielder:temp-keymap-changes
Jason-Fielder:tmp-CollectionsAnim
Jason-Fielder:tmp-b28-motionpath-drawing
Jason-Fielder:uv_unwrapping_slim_algorithm
Jason-Fielder:blender-v2.79b-release
Jason-Fielder:tmp-COW_InsertKeyframe_Fix
Jason-Fielder:temp-unified-collections
Jason-Fielder:temp-modifier-rm-cddm
Jason-Fielder:tmp-TimelineHeaderButtonsStretching
Jason-Fielder:blender2.8-workbench
Jason-Fielder:soc-2017-normal-tools
Jason-Fielder:cycles_bvh8
Jason-Fielder:blender-v2.79a-release
Jason-Fielder:temp-scene-obedit-remove
Jason-Fielder:temp-workspace-object-mode-removal
Jason-Fielder:blender-v2.79-release
Jason-Fielder:soc-2017-sculpting_brush
Jason-Fielder:split-kernel-faster-building
Jason-Fielder:id_override_static
Jason-Fielder:openvdb
Jason-Fielder:custom-manipulators
Jason-Fielder:soc-2016-uv_tools
Jason-Fielder:soc-2016-pbvh-painting
Jason-Fielder:soc-2017-vertex_paint
Jason-Fielder:soc-2017-sculpting_improvements
Jason-Fielder:soc-2017-package_manager
Jason-Fielder:strand_editmode
Jason-Fielder:smooth-fcurves
Jason-Fielder:id_copy_refactor
Jason-Fielder:gsoc2016-improved_extrusion
Jason-Fielder:temp-ssr
Jason-Fielder:temp-cycles-opencl-staging
Jason-Fielder:temp-cycles-denoising
Jason-Fielder:ge_2df_textures
Jason-Fielder:HMD_viewport
Jason-Fielder:soc-2016-multiview
Jason-Fielder:transform-manipulators
Jason-Fielder:datablock_idprops
Jason-Fielder:cycles_disney_brdf
Jason-Fielder:temp_cycles_split_kernel
Jason-Fielder:cycles_split_kernel
Jason-Fielder:unlock_task_scheduler
Jason-Fielder:uv_unwrapping_slim_and_ceres
Jason-Fielder:surface-deform-modifier
Jason-Fielder:cycles-tiles-rework
Jason-Fielder:soc-2016-cycles_denoising
Jason-Fielder:temp-layers-ui-table
Jason-Fielder:uiTable
Jason-Fielder:render-layers
Jason-Fielder:clay-engine
Jason-Fielder:multi_previews_id
Jason-Fielder:cycles_disney_bsdf_transmittance
Jason-Fielder:layers
Jason-Fielder:pbr-viewport
Jason-Fielder:temp_display_optimization
Jason-Fielder:viewport_bvh_select
Jason-Fielder:temp-cycles-microdisplacement
Jason-Fielder:soc-2016-cycles_images
Jason-Fielder:strand_nodes
Jason-Fielder:object_nodes
Jason-Fielder:asset-experiments
Jason-Fielder:soc-2016-sculpt_tools
Jason-Fielder:temp_viewport_fx_merge
Jason-Fielder:custom-normals-bmesh
Jason-Fielder:temp-decklink
Jason-Fielder:compositor-2016
Jason-Fielder:decklink
Jason-Fielder:BendyBones
Jason-Fielder:cycles_panorama_experiments
Jason-Fielder:temp_remove_pointcache
Jason-Fielder:temp_remove_particles
Jason-Fielder:temp_depsgraph_split_ubereval
Jason-Fielder:temp_textedit_comment_toggling
Jason-Fielder:GPencil_Editing_Stage3
Jason-Fielder:temp_bge_moto
Jason-Fielder:UI-experiments
Jason-Fielder:UI-graphical-redesign
Jason-Fielder:missing-libs
Jason-Fielder:free-refcount-ids
Jason-Fielder:cycles_camera_nodes
Jason-Fielder:epic-navigation
Jason-Fielder:temp-ui-widget-refactor
Jason-Fielder:gooseberry_farm
Jason-Fielder:gooseberry
Jason-Fielder:temp-ghash-experiments
Jason-Fielder:temp-ghash-setops
Jason-Fielder:temp_motionpaths
Jason-Fielder:fcurves-simplify
Jason-Fielder:soc-2014-fluid
Jason-Fielder:GPU_data_request
Jason-Fielder:depsgraph_refactor
Jason-Fielder:multiview
Jason-Fielder:vertex_paint_pbvh
Jason-Fielder:alembic_pointcache
Jason-Fielder:cycles-ptex-49
Jason-Fielder:viewport_experiments
Jason-Fielder:soc-2014-bge
Jason-Fielder:texture_nodes_refactor
Jason-Fielder:input_method_editor
Jason-Fielder:GPencil_EditStrokes
Jason-Fielder:soc-2014-shapekey
Jason-Fielder:terrible_consequencer
Jason-Fielder:GPencil_FillStrokes
Jason-Fielder:libmv_prediction
Jason-Fielder:blender2.4
Jason-Fielder:dyntopo_holes
Jason-Fielder:soc-2014-viewport_context
Jason-Fielder:gtest-staging
Jason-Fielder:blender-tiles
Jason-Fielder:soc-2014-viewport_fx
Jason-Fielder:soc-2014-remesh
Jason-Fielder:soc-2014-nurbs
Jason-Fielder:pie-menus
Jason-Fielder:soc-2014-cycles
Jason-Fielder:soc-2013-paint
Jason-Fielder:particles_refactor
Jason-Fielder:soc-2013-viewport_fx
Jason-Fielder:tiles-scheduler
Jason-Fielder:bake-cycles
Jason-Fielder:soc-2013-cycles_volume
Jason-Fielder:overscan
Jason-Fielder:soc-2013-depsgraph_mt
Jason-Fielder:soc-2013-dingto
Jason-Fielder:soc-2013-sketch_mesh
Jason-Fielder:soc-2013-rigid_body_sim
Jason-Fielder:soc-2011-tomato
Jason-Fielder:soc-2013-bge
Jason-Fielder:soc-2013-motion_track
Jason-Fielder:soc-2013-ui_replay
Jason-Fielder:soc-2012-sushi
Jason-Fielder:ge_dev
Jason-Fielder:soc-2013-depsgraph_eval
Jason-Fielder:soc-2008-mxcurioni
Jason-Fielder:soc-2012-bratwurst
Jason-Fielder:soc-2012-swiss_cheese
Jason-Fielder:soc-2012-fried_chicken
Jason-Fielder:meshdata_transfer
Jason-Fielder:smoke2
Jason-Fielder:tile
Jason-Fielder:soc-2011-cucumber
Jason-Fielder:bmesh
Jason-Fielder:soc-2011-carrot
Jason-Fielder:cycles
Jason-Fielder:soc-2011-garlic
Jason-Fielder:soc-2011-radish
Jason-Fielder:soc-2010-nicks
Jason-Fielder:vgroup_modifiers
Jason-Fielder:soc-2011-pepper
Jason-Fielder:soc-2010-jwilkins
Jason-Fielder:merwin-spacenav
Jason-Fielder:bge_components
Jason-Fielder:soc-2010-merwin
Jason-Fielder:render25
Jason-Fielder:soc-2010-nicolasbishop
Jason-Fielder:soc-2009-chingachgook
Jason-Fielder:soc-2010-nexyon
Jason-Fielder:soc-2010-aligorith
Jason-Fielder:ge_eigen2
Jason-Fielder:sculpt25
Jason-Fielder:soc-2009-jaguarandi
Jason-Fielder:soc-2009-imbusy
Jason-Fielder:soc-2009-kazanbas
Jason-Fielder:blender2.5
Jason-Fielder:volume25
Jason-Fielder:soundsystem
Jason-Fielder:soc-2009-aligorith
Jason-Fielder:sim_physics
Jason-Fielder:ge_dome
Jason-Fielder:etch-a-ton
Jason-Fielder:soc-2008-nicholasbishop
Jason-Fielder:animsys2
Jason-Fielder:projection-paint
Jason-Fielder:harmonic-skeleton
Jason-Fielder:soc-2008-jaguarandi
Jason-Fielder:fluidcontrol
Jason-Fielder:apricot
Jason-Fielder:soc-2008-quorn
Jason-Fielder:cloth
Jason-Fielder:ndof
Jason-Fielder:orange
When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
2 changed files with 17 additions and 26 deletions
Showing only changes of commit 96c6349cbf - Show all commits
|
@ -101,6 +101,7 @@ SSR_INTERFACE
|
||||||
# if defined(USE_BARYCENTRICS) && !defined(HAIR_SHADER)
|
# if defined(USE_BARYCENTRICS) && !defined(HAIR_SHADER)
|
||||||
vec3 barycentric_distances_get()
|
vec3 barycentric_distances_get()
|
||||||
{
|
{
|
||||||
|
# if defined(GPU_OPENGL)
|
||||||
/* NOTE: No need to undo perspective divide since it is not applied yet. */
|
/* NOTE: No need to undo perspective divide since it is not applied yet. */
|
||||||
vec3 pos0 = (ProjectionMatrixInverse * gpu_position_at_vertex(0)).xyz;
|
vec3 pos0 = (ProjectionMatrixInverse * gpu_position_at_vertex(0)).xyz;
|
||||||
vec3 pos1 = (ProjectionMatrixInverse * gpu_position_at_vertex(1)).xyz;
|
vec3 pos1 = (ProjectionMatrixInverse * gpu_position_at_vertex(1)).xyz;
|
||||||
|
@ -119,6 +120,17 @@ vec3 barycentric_distances_get()
|
||||||
d = dot(d10, edge21);
|
d = dot(d10, edge21);
|
||||||
dists.z = sqrt(dot(edge21, edge21) - d * d);
|
dists.z = sqrt(dot(edge21, edge21) - d * d);
|
||||||
return dists.xyz;
|
return dists.xyz;
|
||||||
|
# elif defined(GPU_METAL)
|
||||||
|
/* Calculate Barycentric distances from available parameters in Metal. */
|
||||||
|
float3 wp_delta = (length(dfdx(worldPosition.xyz)) + length(dfdy(worldPosition.xyz)));
|
||||||
|
float3 bc_delta = (length(dfdx(gpu_BaryCoord)) + length(dfdy(gpu_BaryCoord)));
|
||||||
|
float3 rate_of_change = wp_delta / bc_delta;
|
||||||
|
vec3 dists;
|
||||||
|
dists.x = length(rate_of_change * (1.0 - gpu_BaryCoord.x));
|
||||||
|
dists.y = length(rate_of_change * (1.0 - gpu_BaryCoord.y));
|
||||||
|
dists.z = length(rate_of_change * (1.0 - gpu_BaryCoord.z));
|
||||||
|
return dists.xyz;
|
||||||
|
# endif
|
||||||
}
|
}
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
|
|
|
@ -1268,6 +1268,11 @@ bool MTLShader::generate_msl_from_glsl(const shader::ShaderCreateInfo *info)
|
||||||
ss_fragment << "uint gl_PrimitiveID;" << std::endl;
|
ss_fragment << "uint gl_PrimitiveID;" << std::endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Global barycentrics. */
|
||||||
|
if (msl_iface.uses_barycentrics) {
|
||||||
|
ss_fragment << "vec3 gpu_BaryCoord;\n";
|
||||||
|
}
|
||||||
|
|
||||||
/* Add Texture members. */
|
/* Add Texture members. */
|
||||||
for (const MSLTextureSampler &tex : msl_iface.texture_samplers) {
|
for (const MSLTextureSampler &tex : msl_iface.texture_samplers) {
|
||||||
if (bool(tex.stage & ShaderStage::FRAGMENT)) {
|
if (bool(tex.stage & ShaderStage::FRAGMENT)) {
|
||||||
|
@ -2036,33 +2041,7 @@ std::string MSLGeneratorInterface::generate_msl_fragment_entry_stub()
|
||||||
|
|
||||||
/* Barycentrics. */
|
/* Barycentrics. */
|
||||||
if (this->uses_barycentrics) {
|
if (this->uses_barycentrics) {
|
||||||
|
|
||||||
/* Main barycentrics. */
|
|
||||||
out << shader_stage_inst_name << ".gpu_BaryCoord = mtl_barycentric_coord.xyz;" << std::endl;
|
out << shader_stage_inst_name << ".gpu_BaryCoord = mtl_barycentric_coord.xyz;" << std::endl;
|
||||||
|
|
||||||
/* barycentricDist represents the world-space distance from the current world-space position
|
|
||||||
* to the opposite edge of the vertex. */
|
|
||||||
out << "float3 worldPos = " << shader_stage_inst_name << ".worldPosition.xyz;" << std::endl;
|
|
||||||
out << "float3 wpChange = (length(dfdx(worldPos))+length(dfdy(worldPos)));" << std::endl;
|
|
||||||
out << "float3 bcChange = "
|
|
||||||
"(length(dfdx(mtl_barycentric_coord))+length(dfdy(mtl_barycentric_coord)));"
|
|
||||||
<< std::endl;
|
|
||||||
out << "float3 rateOfChange = wpChange/bcChange;" << std::endl;
|
|
||||||
|
|
||||||
/* Distance to edge using inverse barycentric value, as rather than the length of 0.7
|
|
||||||
* contribution, we'd want the distance to the opposite side. */
|
|
||||||
out << shader_stage_inst_name
|
|
||||||
<< ".gpu_BarycentricDist.x = length(rateOfChange * "
|
|
||||||
"(1.0-mtl_barycentric_coord.x));"
|
|
||||||
<< std::endl;
|
|
||||||
out << shader_stage_inst_name
|
|
||||||
<< ".gpu_BarycentricDist.y = length(rateOfChange * "
|
|
||||||
"(1.0-mtl_barycentric_coord.y));"
|
|
||||||
<< std::endl;
|
|
||||||
out << shader_stage_inst_name
|
|
||||||
<< ".gpu_BarycentricDist.z = length(rateOfChange * "
|
|
||||||
"(1.0-mtl_barycentric_coord.z));"
|
|
||||||
<< std::endl;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Populate Uniforms and uniform blocks. */
|
/* Populate Uniforms and uniform blocks. */
|
||||||
|
|
Write
Preview
Loading…
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.