mirror of
https://github.com/wagesj45/butterflow-ui.git
synced 2025-09-09 03:00:39 -05:00
Added compute device selection
Added a call to butterflow to get compute devices, as well as a user setting that lets them set which device they want to use. I only have a single GPU, so I am unable to test this.
This commit is contained in:
parent
77d409b4c7
commit
d454d7a7f0
11 changed files with 127 additions and 14 deletions
|
|
@ -14,7 +14,11 @@
|
|||
<Label Content="{x:Static loc:Localization.LanguageLabel}" />
|
||||
<ComboBox DisplayMemberPath="DisplayName" ItemsSource="{Binding SupportedLanguages, Mode=TwoWay, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type butterflow_ui:OptionsWindow}}, UpdateSourceTrigger=PropertyChanged}" SelectedItem="{Binding Source={x:Static settings:Settings.Default}, Path=Language}" />
|
||||
</WrapPanel>
|
||||
<TextBlock Text="{x:Static loc:Localization.OptionsWindowLanguageChangeNotice}" />
|
||||
<TextBlock Text="{x:Static loc:Localization.OptionsWindowLanguageChangeNotice}" Foreground="Gray" />
|
||||
<WrapPanel>
|
||||
<Label Content="{x:Static loc:Localization.DeviceLabel}" />
|
||||
<ComboBox Name="comboDeviceList" DisplayMemberPath="Value" ItemsSource="{Binding ButterflowWrapper.Devices, Mode=OneWay, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type butterflow_ui:OptionsWindow}}, UpdateSourceTrigger=PropertyChanged}" SelectedIndex="{Binding Source={x:Static settings:Settings.Default}, Path=Device}" />
|
||||
</WrapPanel>
|
||||
<Separator Margin="0,10" />
|
||||
<Button Name="btnSave" MaxWidth="45" Content="{x:Static loc:Localization.SaveLabel}" Click="btnSave_Click" />
|
||||
</StackPanel>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue