Search

vs2012 graphics tools - shader debugger bug by Iol2006

Closed

3
0
Sign in
to vote
Type: Bug
ID: 779678
Opened: 2/21/2013 1:25:16 AM
Access Restriction: Public
1
Workaround(s)
3
User(s) can reproduce this bug
I valori visualizzati in fase di debug degli shader sono moltiplicati x10000, gli stessi invece sono corretti nella cronologia pixel grafica.

Sembra essere dovuto all'impostazione della lingua. (se imposto la linguia inglese il bug sparisce)

Details (expand)

Visual Studio/Team Foundation Server/.NET Framework Tooling Version

Visual Studio 2012

Steps to reproduce

1) Catturara uno sreen con il graphics debugger
2) Effettuare il debug di un qualsiasi shader (PS o VS)
3) Visualizzare il dato di input al VS.
4) Usare il seguente Shader: pass.fx
float4x4 view;
float4x4 proj;
float4x4 world;

SamplerState ModelTextureSampler {
    Filter = MIN_MAG_MIP_LINEAR;
    AddressU = WRAP;
    AddressV = WRAP;
};

struct VS_IN
{
    float4 pos : POSITION;
    float4 col : COLOR;
};

struct PS_IN
{
    float4 pos : SV_POSITION;
    float4 col : COLOR;
};

PS_IN VS( VS_IN input )
{
    input.pos.w=1.0f;
    PS_IN output;
    float4x4 worldViewProj = mul(view, proj);// mul(mul(world, view), proj); IF world=IDENTITY NO NEED TO MULTIPLY        
    output.pos = mul(input.pos, worldViewProj);
    output.col = input.col;
    return output;
}

float4 PS( PS_IN input ) : SV_Target
{
    return input.col;
}

technique11 Render
{
    pass P0
    {        
        SetGeometryShader( NULL );
        SetVertexShader( CompileShader( vs_5_0, VS() ) );
        SetPixelShader( CompileShader( ps_5_0, PS() ) );
    }
}

Product Language

Italian

Operating System

Windows 7 SP1

Operating System Language

Italian

Actual results

float4:x=-13576.00000,y=7887.000000,z=-3300.0000000 w=NaN

Expected results

float4:x=-1.357587,y=0.7887179,z=-0.329965 w=6.103516E-05
File Attachments
File Name Submitted By Submitted On File Size  
screen.jpg 2/21/2013 370 KB
screen.jpg (restricted) 2/21/2013 -
Sign in to post a comment.
Posted by Bc_msdn on 2/25/2013 at 2:34 AM
The values ​​displayed for debugging shaders are multiplied x1000000000, instead are corrected in the same pixel graphics history. It seems to be the language setting. (forcing the English language makes bug disappear).

Similar bug to locals with decimal comma.
Posted by Microsoft on 2/22/2013 at 12:44 AM
Thank you for submitting feedback on Visual Studio and .NET Framework. At this time, we only provide support in the English language.

- For urgent issues, please contact support directly at http://support.microsoft.com or call 1-800-MICROSOFT for assistance.
Posted by Microsoft on 2/21/2013 at 2:52 PM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com)
Sign in to post a workaround.
Posted by Iol2006 on 2/21/2013 at 1:29 AM
Cambiare le impostazioni della lingua da italiano a inglese