From 0717c9e7eb0d3fb5595b018c8bd97d66e81f2128 Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Fri, 26 Oct 2018 08:03:40 -0700 Subject: Enabled Vulkan backend to take compiled SPIRV byte code --- Graphics/GraphicsEngine/interface/Shader.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Graphics/GraphicsEngine') diff --git a/Graphics/GraphicsEngine/interface/Shader.h b/Graphics/GraphicsEngine/interface/Shader.h index dc0b29be..fe0fcf5c 100644 --- a/Graphics/GraphicsEngine/interface/Shader.h +++ b/Graphics/GraphicsEngine/interface/Shader.h @@ -252,7 +252,9 @@ struct ShaderCreationAttribs /// Compiled shader bytecode. /// If shader byte code is provided, FilePath and Source members must be null - /// \note. This option is currently only supported for D3D11 and D3D12. + /// \note. This option is supported for D3D11, D3D12 and Vulkan backends. + /// For D3D11 and D3D12 backends, HLSL bytecode should be provided. Vulkan + /// backend expects SPIRV bytecode. /// The bytecode must contain reflection information. If shaders were compiled /// using fxc, make sure that /Qstrip_reflect option is *not* specified. /// Also, shaders need to be compiled against 4.0 profile or higher. @@ -260,7 +262,7 @@ struct ShaderCreationAttribs /// Size of the compiled shader bytecode - /// Byte code size must be provided if ByteCode is not null + /// Byte code size (in bytes) must be provided if ByteCode is not null size_t ByteCodeSize = 0; /// Shader entry point -- cgit v1.2.3