I read the source code of the DirectXMath Library and found that the implementation of XMVectorSetByIndex and XMVectorSetX are completely different. Why not XMVectorSetX simply returns XMVectorSetByIndex (index = 0) ?
What's the difference between XMVectorSetByIndex when index = 0 and XMVectorSetX?
203 Views Asked by Cu2S At
1
There are 1 best solutions below
Related Questions in DIRECTX
- Decal renderer does not discard pixels properly
- how to fix CREATEGRAPHICSPIPELINESTATE_VS_ROOT_SIGNATURE_MISMATCH?
- Why do we only create one render target view?
- DirectX12 development, character steering problem
- DirectX rendering Transparency
- Which format should be more smooth for complex R8 textures - BC4 or BC7?
- Missing HLSL Debug Symbols with D3Dcompile in Visual Studio
- C++ DirectX compress 3D texture into 2D texture
- Nvidia HDR Encoder
- Delphi FMX: How to write a custom shader filter?
- Ternary operator with SamplerStates
- How to export symbols in rust binaries
- How can I safely alter a texture from multiple threads? (seems like there is no `InterlockedAdd`)
- How can I use (resource) barriers to sync access to a `RWTexture2D` between different shaders?
- Point light shadows work wrong, how can I debug it?
Related Questions in DIRECTX-11
- Why do we only create one render target view?
- Missing HLSL Debug Symbols with D3Dcompile in Visual Studio
- Cube Rotation Only Triggered by Mouse Movement or Key Press
- Unable to Display Cube in Direct3D Application
- Slow D3DX11CreateShaderResourceViewFromFile relatively CrystalDiskMark speed
- Attempt to convert pData provided by Direct3d11 to buffer, but error when resize window
- d3d11 triangle rendering failure despite everything being properly initialized
- Initialize DirectX 11 using 'SwapChainPanel' in C#, UWP, XAML
- Qt 5.15, ANGLE: use DirectComposition, i.e. Flip Model SwapChain
- Unresolved external symbol DXGetErrorStringA
- DirectX 3d 11 after using the Depth Stencil view in OMSetRenderTarget nothing is rendering at alllll
- Graphics.DrawString not drawing when picturebox handle is outputsource of directX11 device
- Possible way of implementing Constant buffer in direct x
- Why does CreateDevice() for ID3D11Device return error 0x80070057: "The parameter is incorrect"?
- Unable to see render when I use the .exe
Related Questions in DIRECTXMATH
- C# Matrix4x4 equivalent of DirectX::XMMatrixPerspectiveLH
- How to check if object is in viewport Directx 11
- Convert CONST D3DMATRIX to XMMATRIX
- Objects beyond the far clipping plane are rendered in perspective view
- Projecting and Unprojecting Points with DirectX Math
- How to build XMMATRIX using four FMVECTOR
- XMVECTOR in DirectX
- How to calculate orientation when a ray hits a quad?
- Redefinitions when #include-ing DirectXMath and DirectXTex
- DirectX::XMMATRIX Multiplication incorrect after function pass (C++)
- GXMVECTOR - Documentation?
- C++ template related error with XMVectorPermute
- No Operator = Matches Operands - DX11
- Working with DirectXMath and D3DXMath
- How is it possible to get the float value from XMVECTOR? (DirectXMath)
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
XMVectorSetXis actually able to use SSE or ARM-NEON intrinsics, whileXMVectorSetByIndexhas to 'spill to memory' (i.e. it's not SIMD at all).vs.
It's informative to look at the
XMVectorSetYcase as well where with/arch:AVXor/arch:AVX2it's able to use the SSE4 instruction_mm_insert_psotherwise it has to do a fair bit of work get SIMD code-gen instead of having to 'spill to memory'.