@@ -326,13 +326,11 @@ Asteroids::Asteroids(const Settings& settings, AsteroidsSimulation* asteroids, G
326326 RefCntAutoPtr<IShader> vs, ps;
327327 {
328328 ShaderCreateInfo attribs;
329- attribs.Desc .ShaderType = SHADER_TYPE_VERTEX;
330- attribs.Desc .Name = " Asteroids VS" ;
329+ attribs.Desc = {" Asteroids VS" , SHADER_TYPE_VERTEX, true };
331330 attribs.EntryPoint = " asteroid_vs_diligent" ;
332331 attribs.FilePath = " asteroid_vs_diligent.vsh" ;
333332 attribs.SourceLanguage = SHADER_SOURCE_LANGUAGE_HLSL;
334333 attribs.pShaderSourceStreamFactory = pShaderSourceFactory;
335- attribs.UseCombinedTextureSamplers = true ;
336334
337335 ShaderMacro Macros[] = {{" BINDLESS" , " 1" }, {}};
338336 if (m_BindingMode == BindingMode::Bindless)
@@ -343,12 +341,10 @@ Asteroids::Asteroids(const Settings& settings, AsteroidsSimulation* asteroids, G
343341
344342 {
345343 ShaderCreateInfo attribs;
346- attribs.Desc .ShaderType = SHADER_TYPE_PIXEL;
347- attribs.Desc .Name = " Asteroids PS" ;
344+ attribs.Desc = {" Asteroids PS" , SHADER_TYPE_PIXEL, true };
348345 attribs.EntryPoint = " asteroid_ps_diligent" ;
349346 attribs.FilePath = " asteroid_ps_diligent.psh" ;
350347 attribs.pShaderSourceStreamFactory = pShaderSourceFactory;
351- attribs.UseCombinedTextureSamplers = true ;
352348 attribs.SourceLanguage = SHADER_SOURCE_LANGUAGE_HLSL;
353349
354350 ShaderMacro Macros[] = {{" BINDLESS" , " 1" }, {}};
@@ -460,19 +456,16 @@ Asteroids::Asteroids(const Settings& settings, AsteroidsSimulation* asteroids, G
460456
461457 RefCntAutoPtr<IShader> vs, ps;
462458 ShaderCreateInfo attribs;
463- attribs.Desc .ShaderType = SHADER_TYPE_VERTEX;
464- attribs.Desc .Name = " Skybox VS" ;
459+ attribs.Desc = {" Skybox VS" , SHADER_TYPE_VERTEX, true };
465460 attribs.EntryPoint = " skybox_vs" ;
466461 attribs.FilePath = " skybox_vs.vsh" ;
467462 attribs.SourceLanguage = SHADER_SOURCE_LANGUAGE_HLSL;
468- attribs.UseCombinedTextureSamplers = true ;
469463 attribs.pShaderSourceStreamFactory = pShaderSourceFactory;
470464 mDevice ->CreateShader (attribs, &vs);
471465
472- attribs.Desc .Name = " Skybox PS" ;
473- attribs.EntryPoint = " skybox_ps" ;
474- attribs.FilePath = " skybox_ps.psh" ;
475- attribs.Desc .ShaderType = SHADER_TYPE_PIXEL;
466+ attribs.Desc = {" Skybox PS" , SHADER_TYPE_PIXEL, true };
467+ attribs.EntryPoint = " skybox_ps" ;
468+ attribs.FilePath = " skybox_ps.psh" ;
476469 mDevice ->CreateShader (attribs, &ps);
477470
478471 GraphicsPipelineStateCreateInfo PSOCreateInfo;
@@ -570,36 +563,30 @@ Asteroids::Asteroids(const Settings& settings, AsteroidsSimulation* asteroids, G
570563 RefCntAutoPtr<IShader> sprite_vs, sprite_ps, font_ps;
571564 {
572565 ShaderCreateInfo attribs;
573- attribs.Desc .ShaderType = SHADER_TYPE_VERTEX;
574- attribs.Desc .Name = " Sprite VS" ;
566+ attribs.Desc = {" Sprite VS" , SHADER_TYPE_VERTEX, true };
575567 attribs.EntryPoint = " sprite_vs" ;
576568 attribs.FilePath = " sprite_vs.vsh" ;
577569 attribs.SourceLanguage = SHADER_SOURCE_LANGUAGE_HLSL;
578- attribs.UseCombinedTextureSamplers = true ;
579570 attribs.pShaderSourceStreamFactory = pShaderSourceFactory;
580571 mDevice ->CreateShader (attribs, &sprite_vs);
581572 }
582573
583574 {
584575 ShaderCreateInfo attribs;
585- attribs.Desc .ShaderType = SHADER_TYPE_PIXEL;
586- attribs.Desc .Name = " Sprite PS" ;
576+ attribs.Desc = {" Sprite PS" , SHADER_TYPE_PIXEL, true };
587577 attribs.EntryPoint = " sprite_ps" ;
588578 attribs.FilePath = " sprite_ps.psh" ;
589579 attribs.SourceLanguage = SHADER_SOURCE_LANGUAGE_HLSL;
590- attribs.UseCombinedTextureSamplers = true ;
591580 attribs.pShaderSourceStreamFactory = pShaderSourceFactory;
592581 mDevice ->CreateShader (attribs, &sprite_ps);
593582 }
594583
595584 {
596585 ShaderCreateInfo attribs;
597- attribs.Desc .ShaderType = SHADER_TYPE_PIXEL;
598- attribs.Desc .Name = " Font PS" ;
586+ attribs.Desc = {" Font PS" , SHADER_TYPE_PIXEL, true };
599587 attribs.EntryPoint = " font_ps" ;
600588 attribs.FilePath = " font_ps.psh" ;
601589 attribs.SourceLanguage = SHADER_SOURCE_LANGUAGE_HLSL;
602- attribs.UseCombinedTextureSamplers = true ;
603590 attribs.pShaderSourceStreamFactory = pShaderSourceFactory;
604591 mDevice ->CreateShader (attribs, &font_ps);
605592 }
0 commit comments