public ShaderInfo(VkShaderStageFlags _stageFlags, string _spirvPath, SpecializationInfo specializationInfo = null, string _entryPoint = "main") { StageFlags = _stageFlags; SpirvPath = _spirvPath; EntryPoint = new FixedUtf8String(_entryPoint); this.SpecializationInfo = specializationInfo; }
public void AddShader(VkShaderStageFlags _stageFlags, string _spirvPath, SpecializationInfo specializationInfo = null, string _entryPoint = "main") { shaders.Add(new ShaderInfo(_stageFlags, _spirvPath, specializationInfo, _entryPoint)); }